Differences
This shows you the differences between the selected revisions of the page.
2016-07-27 | 2017-10-09 | ||
ui_generateurl#script (martin) | local account network access (martin) | ||
Line 1: | Line 1: | ||
====== My script works fine when executed manually, but fails or hangs when run by Windows Scheduler, SSIS or other automation service. What am I doing wrong? ====== | ====== My script works fine when executed manually, but fails or hangs when run by Windows Scheduler, SSIS or other automation service. What am I doing wrong? ====== | ||
- | You probably depend on your configuration of WinSCP or your Windows account environment. | + | You probably depend on your configuration of WinSCP or your Windows account permissions or environment. |
Possible consequences are: | Possible consequences are: | ||
* The script fails (or "hangs"), because the [[ssh_verifying_the_host_key|host key]] ([[SFTP]] or [[SCP]]) or [[tls#certificate|certificate]] (FTPS, WebDAVS) is not known by the service's account, and WinSCP fails (or asks for) its verification. | * The script fails (or "hangs"), because the [[ssh_verifying_the_host_key|host key]] ([[SFTP]] or [[SCP]]) or [[tls#certificate|certificate]] (FTPS, WebDAVS) is not known by the service's account, and WinSCP fails (or asks for) its verification. | ||
- | * The connection fails, because your script depends on [[session_configuration#site|site]], which is not known by the service's account. | + | * The connection fails, because your script depends on [[session_configuration#site|site]], which is not known by the service's account; or the local account that runs the service does not have a network access. |
* Environment variables referenced in script are not resolved, because they are not set by the service's account. | * Environment variables referenced in script are not resolved, because they are not set by the service's account. | ||
* Access to files on mapped network drives fails, because the drives are not mapped for the service's account. | * Access to files on mapped network drives fails, because the drives are not mapped for the service's account. |