Solved

Running batch file as a scheduled task without user account

Posted on 2009-05-19
4
668 Views
Last Modified: 2012-06-21
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
Comment
Question by:MartynLawson
4 Comments
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 24421787
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
 
LVL 47

Accepted Solution

by:
Donald Stewart earned 500 total points
ID: 24421976
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
 
LVL 38

Expert Comment

by:Shift-3
ID: 24422715
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
 
LVL 1

Author Closing Comment

by:MartynLawson
ID: 31582988
This works now that I have configured the task this way

Many thanks for your help
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question