Advertisement
Guest User

Untitled

a guest
Jan 21st, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. $user = "user"
  2. $password = "password"
  3. $hostname = "host"
  4. $plinkPath = gci -Recurse | Where-Object {$_.Name -eq "plink.exe"} | select -First 1 | foreach{$_.FullName}
  5. & $plinkPath "$User@$hostname" -pw $password "echo" "hello ab`"cdef world"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement