Differences

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

2014-12-23 2015-01-25
loading anchor (martin) I updated the module to use parameter names that match the assembly properties, so LocalItem is now LocalPath etc (107.5.184.56)
Line 97: Line 97:
$session = Open-WinSCPSession -SessionOptions $options $session = Open-WinSCPSession -SessionOptions $options
# Using the open WinSCPSession, download the file from the remote host to the local host. # Using the open WinSCPSession, download the file from the remote host to the local host.
-Receive-WinSCPItem -WinSCPSession $session -RemoteItem "/home/user/file.txt" -LocalItem "C:\download\"+Receive-WinSCPItem -WinSCPSession $session -RemotePath "/home/user/file.txt" -LocalPath "C:\download\"
# Close the WinSCPSession after completion. # Close the WinSCPSession after completion.
Close-WinSCPSession -WinSCPSession $session Close-WinSCPSession -WinSCPSession $session

Last modified: by 107.5.184.56