Solved

Running batch file as a scheduled task without user account

Posted on 2009-05-19
4
667 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now