Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

nevi

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
nevi

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