Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Schedule a task in 2000 server

Status
Not open for further replies.

raylward

IS-IT--Management
Sep 16, 2005
13
CA
I have 5 win2k servers. Last year I ran into a problem where I could not schedule a batch file to run in the task scheduler. The batch file would run successfully when I clicked and ran it manually, but would fail as a scheduled task. I think that I ended up using the local administrator account to run the task in the scheduler instead of the domain administrator account, to fix that issue. I also stopped using xcopy and substituted it with a robocopy command that seemed to fix my problem. That problem was happening on a 2k member server. Not the main Active directory domain server.
My new problem is that I need to schedule a task on my main active directory domain server and I am back to the same problem. To make things worse, I can’t use a local account because they don’t exist on an active directory domain server. Only domain accounts seem to exist. To make a long story short, I could use some advice as to how I can schedule my batch and actually have it successfully run on my main domain server. Any ideas?
 
You can run scheduled batch file under which account you want, you only should grant 'Log on as a batch job' rights to this user (or group). You can do this using Group Policy.

===
Karlis
ECDL; MCSA
 
This account shoud have 'Log on locally' rights too, but on DC's domain admins usually have it.
Check Task scheduler log and Security log if there are Access denied errors at scheduled times.
Perhaps this is not permission problem? Is there full path to batch file in job properties?
Sorry, have no more ideas.

===
Karlis
ECDL; MCSA
 
I have been reading a few other posts that seem to point towards terminal services being the issue. This computer I am working on is in another city. I connect via terminal services using vpn. Is it because I am logged in that way. Second of all, there is no console session available for me to log into. I checked under the terminal services manager to see, but because I am the only admin, no users are logged on locally at the machine. As far as domain admins are concerned, I have joined the admin account to every group including domain admins to make sure I was not missing anything. Any idea's
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top