Post a reply

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


Generated PowerShell script not work from Task Scheduler

Hi Martin

I have read this page and either don't understand the relevant information or my problem is not covered.

I have generated a PS script from WinSCP GUI and when the script is run it works.

However, I need the PS script to run at a scheduled time daily, so called from Windows Task Scheduler. The task runs the PS script when not calling command, but when included it launches WinSCP but the application does not execute as expected.

If I launch SysInternals' procexp I see WinSCP running and arguments provided - see attachment.
(hostkey="*" only for testing)

Is there something I am missing for to execute properly.