Skip to content

Instantly share code, notes, and snippets.

@mgeeky
Last active November 28, 2017 10:02
Note to self: Example of using PSRemoting with credentials passed directly from command line
Invoke-Command 192.168.56.102 -Cred (New-Object -Type System.Management.Automation.PSCredential -ArgumentList "ieuser", $(ConvertTo-SecureString "Passw0rd!" -AsPlainText -Force)) {ipconfig}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment