.NET assembly via Task Scheduler
I have a quick question, I have a working PS1 with .NET assembly that runs just fine when I run it inside the WinSCP Automation folder but does not run in the Task scheduler, I've been trying all the different ways in the forums to run it with no luck, here are some of the attempts:
Attempt1:
Attempt2:
Attempt3:
All failing with the same error code:
2147942401
Could you please help me with the Program/Script and Arguments for this please?
Location Variable: C:\Users\gp-mradmin\Desktop\WinSCP-6.1.2-Automation
PS: TTSI_SFTP_1.ps1
Attempt1:
"C:\Program Files (x86)\WinSCP\WinSCP.com" /script="C:\Users\gp-mradmin\Desktop\WinSCP-6.1.2-Automation\TTSI_SFTP_1.ps1"
C:\Users\gp-mradmin\Desktop\WinSCP-6.1.2-Automation\TTSI_SFTP_1.ps1
"C:\Users\gp-mradmin\Desktop\WinSCP-6.1.2-Automation\WinSCP.exe"
/script="C:\Users\gp-mradmin\Desktop\WinSCP-6.1.2-Automation\TTSI_SFTP_1.ps1"
2147942401
Could you please help me with the Program/Script and Arguments for this please?
Location Variable: C:\Users\gp-mradmin\Desktop\WinSCP-6.1.2-Automation
PS: TTSI_SFTP_1.ps1