You probably depend on your configuration of WinSCP. Note that when using registry as configuration storage, the settings are accessible only for your Windows account. When the script is run from Windows Scheduler, SSIS, DTS or other automation service, it is typically run under different (service) account that cannot access your configuration.
Possible consequences are:
Solutions:
When dealing with SSIS see also guide to SFTP task in SSIS.
Site design by Black Gate