Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 675
  • Last Modified:

Running batch file as a scheduled task without user account

I am trying to run a batch file as a scheduled task on a windows xp machine. This would normally be relatively simple but the GPO's applied do not allow localaccounts to be created on the machine. I also have other restrictions which means that I cannot have a domain account to run the batch.

Is there any way of running the batch as a scheduled task without specifiying a user account
0
MartynLawson
Asked:
MartynLawson
1 Solution
 
BrandonGalderisiCommented:
I believe if you don't specify a user, it will run as whatever user is currently logged in.  Which means it will only run as the logged in user.  I would say that if you have a real need to do this, contact your IT group and have them ease the restrictions to allow it.  That is the proper way to handle this.
0
 
Donald StewartNetwork AdministratorCommented:
If you use the "AT" command your task will be run as the system account
 
How To Use the AT Command to Schedule Tasks
0
 
Shift-3Commented:
The AT command is deprecated.  Schtasks offers much more functionality.  

Running the task under the System account is the way to go though.  Schedule it using the account "NT AUTHORITY\SYSTEM" and a blank password.  This will run it with administrative rights.  If the task needs to access files on a network share, grant the necessary permissions to the computer's AD account.
0
 
MartynLawsonAuthor Commented:
This works now that I have configured the task this way

Many thanks for your help
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now