0
I have a .cmd script I want to run every 5 minutes.
if I add a Windows 7 Task for that it runs fine if I provide a real user.
But I want to run it with the SYSTEM user. Doing this the script does not do anything.
How to fix this?
0
I have a .cmd script I want to run every 5 minutes.
if I add a Windows 7 Task for that it runs fine if I provide a real user.
But I want to run it with the SYSTEM user. Doing this the script does not do anything.
How to fix this?
0
You can select what user account should be used to run scheduled task in task's properties.
Go to General tab and click to "Change User or Group..." button. Type SYSTEM and confirm. The task should start under SYSTEM account after that.
Yes, I tried that. The tasdk runs successfully but nothing happens. If I use a different user, then it works. – juergen d – 2015-02-25T06:53:21.543
What do you mean by nothing happens? What is your script supposed to do? – ge0rdi – 2015-02-25T08:09:22.470
My script converts some files, but it doesn't convert any if I use SYSTEM user. – juergen d – 2015-02-25T08:09:56.320
Try to add "echo whoami > c:\test.txt" to your script. It should write actual user to that file. Just to test whether it was really started under system. – ge0rdi – 2015-02-25T08:12:41.413
1This might help – Ramhound – 2015-02-24T16:13:46.627