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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scheduled tasks 1

Status
Not open for further replies.

pinkpanther56

Technical User
Joined
Jun 15, 2005
Messages
807
Location
GB
I have a .bat file that activates the disk defragmenter on the C: drive, i have placed this in the Netlogon share on my server and created a scheduled task to run it. The task runs fine when i'm logged on and appears to have run as scheduled if i leave the machine, the problem is that if i copy the task to another machines scheduled tasks folder over the network it doesn't seem to run.

I have the scheduled task set to run as a domain user that is a local admin on all stations.

Can anyone tell me if tasks should run after been copied to another PC, or if i am missing a step?

Cheers.
 
What is recorded in the SchedLgU.log in the Windows folder?

Scheduled Task Does Not Run After You Push the Task to Another Computer


A minimum of 15 percent free space on your hard disk is needed for Disk Defragmenter to run. This is yet another argument in favor of frequent and aggressive use of the Disk Cleanup tool.
 
Hi i'll check the SchedLgU.log when i get back. I'm not quite sure how to procede now is the link saying that i will have to use the command line to set this task on multiple PC's (i'd like to push this to 100+ clients) or is there a way to push the job file?

I thought the idea of the shared tasks folder was that you could copy jobs between PC's

Thanks.
 
Hopefully the log file will give you the answer. Even if the Job file is accessible via Shared Folders, it may be that the files run by the Job are not accessible due to the Permissions etc.
 
Yes i'm receiving this error in the log:

0x8004130f: No account information could be found in the Task Scheduler security database for the task indicated.

Ok so it runs on the client where the job was created so the .bat file in netlogon is accesible but it fails when i copy it to another PC's tasks folder. So what is the best way to create this same job on the other 100 clients?

Thanks for your help.
 
Sorted it cheers i just put this in a .bat file and it runs it under system.

AT \\computername 15:35 /Every:F c:\windows\system32\defrag.exe c:

Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top