Re: execute WinSCP script with passphrase via Windows Task Scheduler
Thanks for the quick reply, Martin. The pointer to adding a session log has solved the problem. A review of the log created by the Task Scheduler job showed that it was waiting for authorization to add the remote host key to the cache. I'd already done this during the manual tests from the command line. The issue was that the Task Scheduler job was running as a different user than the user I was logged onto the system as. Both users had admin permissions on the system but, I'd forgotten to setup the connection in WinSCP for the Task Scheduler job's RunAs user.
Many thanks for the help!
Many thanks for the help!