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

1 line
189 B
PowerShell

Invoke-Command 192.168.56.102 -Cred (New-Object -Type System.Management.Automation.PSCredential -ArgumentList "ieuser", $(ConvertTo-SecureString "Passw0rd!" -AsPlainText -Force)) {ipconfig}