Scheduled tasks won't run unless logged in

J

Jordan

I am having a problem where some scheduled tasks will run, however some will
not run. All use the same Administrator logon to run. It appears that
batch file tasks are the ones with the problem.

If I am logged on the console or even via a Terminal session as
Administrator, all the tasks run, but if I log off all the users, the
windows .exe type of commands run fine, but the batch file commands do not
run. As examples, my AV protection runs a program that checks for updates 4
times a day and my AV is always up to date, however I have a batch file that
calls a few "Net Stop" commands, then NTBackup.exe , and finally the "Net
Start" commands and this batch file and other batch files like it never run
unless I am logged in as the Administrator (or logged in with the console
locked)

Is there a reason why command line batch files are not running on my Windows
2003 Server unless I am logged in?
 
B

Brian Komar

the console or even via a Terminal session as
Administrator, all the tasks run, but if I log off all the users, the
windows .exe type of commands run fine, but the batch file commands do not
run. As examples, my AV protection runs a program that checks for updates 4
times a day and my AV is always up to date, however I have a batch file that
calls a few "Net Stop" commands, then NTBackup.exe , and finally the "Net
Start" commands and this batch file and other batch files like it never run
unless I am logged in as the Administrator (or logged in with the console
locked)

Is there a reason why command line batch files are not running on my Windows
2003 Server unless I am logged in?
Modify the permissions of CMD.exe in the windir\system32 folder to
assign the BATCH group the Read and the Read & Execute permissions. The
scheduled task is failing because it needs to spawn a command prompt.

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top