Author Posts

March 9, 2017 at 9:29 am


I have a powershell script that works OK – however, the WinSCP requests password re-entering after couple of hours. When this happens the powershell script stops and the transfer of files is terminated.

I want to the script to continue when the password is prompted by WinSCP – How can I achieve that in the code?


March 10, 2017 at 3:51 pm

Your script would need to trap that error condition and re-submit the password.