Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Help With Windows Powershell

$
0
0
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!?

Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>