WinSCP Powershell Module Upload failed run in background Windows Server

Advertisement

wilsonwen
Joined:
Posts:
1

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,605
Location:
Prague, Czechia

Re: WinSCP Powershell Module Upload failed run in background Windows Server

WinSCP PowerShell module is a 3rd party package.
Anyway, if you post WinSCP session log file both for working and failing upload, we might be able to help nevertheless.

Reply with quote

Advertisement

You can post new topics in this forum