1. Member
Join Date
Oct 2005
Posts
52

NT Authority/System account for Scheduled Tasks

I need help to work with batch file. I had created one which can generate at schedule task. This task is capable of running a wizard that supports user account creation. I am using a script and used dos for the same. I had used one syntax that I found on the Microsoft website. Based on that I was able to create a task using Authority/System account with admin rights. When I run the task nothing happens. The script looks perfect but I am not able to understand why it is not working.

2. Member
Join Date
Sep 2004
Posts
125

Re: NT Authority/System account for Scheduled Tasks

There are some things that can cause the failure of your script. First the security settings. Which are limiting the execution right of script. This is always the biggest issue in running different task. I had find ample of time the task failed to run due to low privileges. I am not sure how does that can be modified but you can try looking on web.

3. Member
Join Date
Jun 2009
Posts
1,112

Re: NT Authority/System account for Scheduled Tasks

If you are on a single computer then the most beneficial method would be to create an account under Builtin Backup Operators group. Sometimes the System account is mistaken by users as SuperUser or root account which is neither of the two. Windows usually uses it internally and it was never meant to be used by any programs as well.

4. Member
Join Date
Jan 2006
Posts
3,792

Re: NT Authority/System account for Scheduled Tasks

You will need to use the below code to call it, just save the code in file my_work.bat and then schedule it according to your plan:

Code:
@echo off
echo %date% %time% %username% >> g:\in\test.txt
cscript //nologo g:\in\BODY1E.vbs 1>>g:\in\test.txt 2>>&1
echo %date% %time% >> g:\in\test.txt
You also will get a trace of execution in test.txt file which will be made and saved in c:\IN.