mgeeky-Penetration-Testing-.../red-teaming/Invoke-Command-Cred-Example.ps1

1 line
189 B
PowerShell
Raw Normal View History

2018-02-02 22:22:43 +01:00
Invoke-Command 192.168.56.102 -Cred (New-Object -Type System.Management.Automation.PSCredential -ArgumentList "ieuser", $(ConvertTo-SecureString "Passw0rd!" -AsPlainText -Force)) {ipconfig}