Differences

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

2015-12-17 2016-02-04
removing uses of option batch and confirm not needed since 5.6 with release of the next major branch 5.8 (martin) hashtable style sessionoptions initilization (martin)
Line 49: Line 49:
# Use read credentials # Use read credentials
-$sessionOptions = New-Object WinSCP.SessionOptions +$sessionOptions = New-Object WinSCP.SessionOptions -Property @{ 
-$sessionOptions.Protocol = [WinSCP.Protocol]::Sftp +····Protocol = [WinSCP.Protocol]::Sftp 
-$sessionOptions.HostName = "example.com" +····HostName = "example.com" 
-$sessionOptions.UserName = $config.Configuration.UserName +····UserName = $config.Configuration.UserName 
-$sessionOptions.Password = $config.Configuration.Password+····Password = $config.Configuration.Password 
 +}
... ...

Last modified: by martin