Link to home
Start Free TrialLog in
Avatar of MartynLawson
MartynLawson

asked on

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
Avatar of BrandonGalderisi
BrandonGalderisi
Flag of United States of America image

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.
ASKER CERTIFIED SOLUTION
Avatar of Don
Don
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of MartynLawson
MartynLawson

ASKER

This works now that I have configured the task this way

Many thanks for your help