Re: Powershell: No way to disable reconnect
Actually, it is possible:
https://winscp.net/forum/viewtopic.php?t=34122#121342
https://winscp.net/forum/viewtopic.php?t=34122#121342
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
reconnecttime
to off
actually enables infinite reconnects:
AdditionalExecutableArguments
, which always should be null). Here is my testcase using SFTP to a Ubuntu Server that I'm able to control:
sudo killall -u <username goes here>
)
$session.Open($sessionOptions)
Read-Host "Script waiting. Press enter to go on"
$transferResult = $session.PutFiles($localPath, $remotePath, $false, $transferOptions)