Differences

This shows you the differences between the selected revisions of the page.

2014-09-22 2014-09-23
dops1 powershell module (martin) Updated example to reflect changes to the powershell module. (107.5.184.201)
Line 84: Line 84:
<code powershell> <code powershell>
-Open-WinSCPSession -HostName "example.com" -Username "user" -Password "mypassword" -SshHostKeyFingerprint "ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" |  +$session = New-WinSCPSessionOptions -Hostname myftphost.org -Username ftpuser -password "FtpUserPword" -SshHostKeyFingerprint "ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" | Open-WinSCPSession 
-·····Send-WinSCPItem -LocalItem "b:\toupload\*" -Remote-Item "/home/user/"+Receive-WinSCPItem -WinSCPSession $session -RemoteItem "rDir/rFile.txt" -LocalItem "C:\lDir\lFile.txt" -RemoveRemoteItem 
 +Close-WinSCPSession -WinSCPSession $session
</code> </code>

Last modified: by 107.5.184.201