Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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)


Topic review


Thanks again, Martin.

I think I had that line commented out because I wasn't sure it was the right way to do it -- but I didn't realize I had NO method in use, so I appreciate the pointer!

I'm trying again with tonight's scheduled run.

Re: Setting "session timeout?"

I cannot see any timeout in the log.

Anyway, you probably want this:

$sessionOptions = New-Object WinSCP.SessionOptions -Property @{

    Timeout = new-timespan -minutes 5

(You actually have it already in the code, just commented-out).

Setting "session timeout?"

Our vendor just moved us to a new SFTP server, and I'm now having intermittent issues with downloads that had been working.

I'm attaching the powershell script where I thought that adding
$session.Timeout = new-timespan -minutes 5
would do the trick, but apparently I'm guessing wrong!

I'm also attaching the debug log file, showing a 15 second timeout, I think.

What's the correct way for me to, as the vendor recommended, "...increase the time out in winscp..." ?