Script not working

D

DeepakZM

This scripts was working normal, and suddenly it is not working, can someone please tell, same issue is with my all scripts all sudden all showing same error,$computers = Get-Content -Path E:\Newfolder\Input\List_computers.txt$password = convertTo-SecureString "123456" -AsPlainText -Force$cred = New-Object System.Management.Automation.PSCredential ("user", $password)$session = New-PSSession -ComputerName $computers -Credential $cred$command = {Get-LocalUser| where-Object -Property Enabled -EQ True | Select-Object -Property Name, Enabled, Description }$res = Invoke-Command -Session $sessi

Continue reading...
 
Back
Top Bottom