WinSCP Powershell Module Upload failed run in background Windows Server
Hi, schedule my PowerShell script with Windows Server Task scheduler, and can successfully upload files to SFTP with no issue. However, when Windows Server goes into
Ctrl+Alt+Del
lock screen mode after 2 hours, Send-WinSCPItem
command failed to execute transfer files. Any idea on how to resolve this issue? Thank you.
Import-Module WinSCP New-WinSCPSessionOption Send-WinSCPItem Get-WinSCPChildItem Remove-WinSCPSession