Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $user = "user"
- $password = "password"
- $hostname = "host"
- $plinkPath = gci -Recurse | Where-Object {$_.Name -eq "plink.exe"} | select -First 1 | foreach{$_.FullName}
- & $plinkPath "$User@$hostname" -pw $password "echo" "hello ab`"cdef world"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement