I am on Windows Server 2012 trying to connect WINRM to my client i am using PowerShell (PS) for example PS> $cred = New-Object System.Management.Automation.PSCredential -ArgumentList @(‘USERNAME’,(ConvertTo-SecureString -String ‘PASSWORD’
-AsPlainText -Force)) and that works but when i try the 2nd part Invoke-Command -ComputerName vscope-demo2 -ScriptBlock (ipconfig /all) -Credential $cred it says it cannot convert & the method is not supported Or Invaild help me please!?
↧