Differences

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

2023-02-10 2023-02-22
6.0 Bug 2102: Reading password from a file (martin) forgotten conversion of -username and -password (martin)
Line 75: Line 75:
| ''-explicit''      | Set ''[[library_sessionoptions#ftpsecure|SessionOptions.FtpSecure]]'' to ''FtpSecure.Explicit'' (''[WinSCP.FtpSecure]::Explicit''). | | ''-explicit''      | Set ''[[library_sessionoptions#ftpsecure|SessionOptions.FtpSecure]]'' to ''FtpSecure.Explicit'' (''[WinSCP.FtpSecure]::Explicit''). |
| ''-timeout''      | Set ''[[library_sessionoptions#timeout|SessionOptions.Timeout]]''. | | ''-timeout''      | Set ''[[library_sessionoptions#timeout|SessionOptions.Timeout]]''. |
 +| ''-username'' | Set ''[[library_sessionoptions#username|SessionOptions.UserName]]''. |
 +| ''-password'' | Set ''[[library_sessionoptions#password|SessionOptions.Password]]''. |
| ''-passwordsfromfiles'' | Read the file in your code and assign a respective property. \\ PowerShell example: ''$sessionOptions.Password = (Get-Content $path)[0]'' | | ''-passwordsfromfiles'' | Read the file in your code and assign a respective property. \\ PowerShell example: ''$sessionOptions.Password = (Get-Content $path)[0]'' |
| ''-rawsettings''  | Call ''[[library_sessionoptions_addrawsettings|SessionOptions.AddRawSettings]]'' for every key/value pair in switch parameters. | | ''-rawsettings''  | Call ''[[library_sessionoptions_addrawsettings|SessionOptions.AddRawSettings]]'' for every key/value pair in switch parameters. |

Last modified: by martin