Use "stored" session settings from .NET assembly

Advertisement

nevi
Joined:
Posts:
7

Use "stored" session settings from .NET assembly

Hi
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.

Thank you.

Kind regards,
Neilsean Victorino

Reply with quote

Advertisement

nevi
Joined:
Posts:
7

Re: Use "stored" session settings from .NET assembly

Thank you very much for your reply.
I was actually doing something similar with regards to encryption and secure strings. But it's good to know for certain what the possibilites are with the .NET assembly with regards to this matter.

Again, I humbly thank you for your quick response!

Kind regards,
Neilsean Victorino

Reply with quote

Advertisement

You can post new topics in this forum