Task to run python script to delete files from a CIFS share is being executed with following settings:
- Task running as domain admin account which has full permissions wherever needed.
- Task setting of "Run with highest proviliges" is checked.
- Task action: Program/script: c:\scripts\python\python.exe
Add arguments: c:\scripts\python\script.py
the task is working just fine as long as the setting of: "Run only when user is logged on" is checked.
when changing to: "Run whether user is logged on or not" which is what I actually need and entering the correct credentials of the SAME user which is currently logged on to the server, the task does not run, and in the "Last run result" is shows: (0x1) .
the script deletes files in a mapped drive which is mapped to a CIFS share.
Any ideas ?