Need to schedule multiple tasks with dependencies
We have ~2000 PCs in the company and we want to push out scheduled tasks to run disk cleanup and defrag. Since we have locations from the East Coast to Hawaii that run 24 hours a day and we have no way of knowing when people will have their PCs turned on, setting a specific time for the scheduled task is not realistic. What I want to do is set a task to run disk cleanup at logon (using the /sagerun option and we will push out the registry changes), then run defrag after the disk cleanup is finished. I don't necessarily need the disk cleanup to return an exit code of (0), although that would be nice. I just don't want the two to be running simultaneously. Is there a way to set one task to start after another task has completed? Or should I create a batch file (to execute disk cleanup, then start defrag after an exit code for disk cleanup is received) and have the task scheduler execute the batch file at logon? One more question on this task. When I set the task to run at logon as the local administrator account, can I set parameters in the command to run silently in the background with no user interface at all? I assume that the first one will be painful on most machines that haven't run a disk cleanup or defrag in months or years, but after that it should only take a minute or two (that's what it's doing on my own machine after I set it up). Thanks in advance for any help. Getting this routine maintenance automated will free up time for our Help Desk because they're getting a lot of calls for "slow computers."2 people need an answerI do too
November 5th, 2009 6:55pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics