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

insigner

Ok, I found it myself :D

Must enter the following

$sessionOptions.PortNumber = "customportnumber"
insigner

.NET assembly Sync script and custom FTP Port

Hi all.

I am currently testing the remote to local sync script provided to this link.

What I want is to be able to connect on a custom port. The remote server is running an ftp service but not on 21 port.

In the script there is this:

$sessionOptions.Protocol = [WinSCP.Protocol]::Sftp

is there a way to overcome the named setting and set the port number?

Thank you in advance