1 2 3 |
New-SSHSession -ComputerName 192.168.1.162 -Credential (Get-Credential) $resultado=Invoke-SSHCommand -Index 0 'for (( i=1; i <= 10; i++ )); do echo "Number $i"; done' $resultado.Output |
1 2 3 |
New-SSHSession -ComputerName 192.168.1.162 -Credential (Get-Credential) $resultado=Invoke-SSHCommand -Index 0 'for (( i=1; i <= 10; i++ )); do echo "Number $i"; done' $resultado.Output |