1 2 3 4 |
New-SSHSession -ComputerName 192.168.1.162 -Credential (Get-Credential) Invoke-SSHCommand -Index 0 "pwd" Invoke-SSHCommand -Index 0 "cat script.ps1" Invoke-SSHCommand -Index 0 "powershell script.ps1" |
1 2 3 4 |
New-SSHSession -ComputerName 192.168.1.162 -Credential (Get-Credential) Invoke-SSHCommand -Index 0 "pwd" Invoke-SSHCommand -Index 0 "cat script.ps1" Invoke-SSHCommand -Index 0 "powershell script.ps1" |