I have successfully created many PowerShell scripts using the .NET assembly. But I always create a WinSCP.SessionOptions object, which contains the session information (Protocol, HostName, UserName, Password etc.).
Using the WinSCP GUI (New Site), I have created multiple sessions, where I've entered the same type of information - for interactive connections.
My question is now: Is it possible to use these "stored" sessions from within a script using the .NET assembly? One of the benefits would be not having to specify the password in the script.
I know that it is possible to use "stored" sessions as parameter when calling winscp.exe. I'm just not sure about the .NET assembly.