How to schedule task with random time via command line
Posted on 2006-05-22
We schedule tasks via the command line on hundreds of machines to perform some automated tasks daily. Unfortunately, because the schedule is ran at the same time on every machine, it can cause issues with resources, bandwidth, etc. e.g. hundreds of machines trying to connect to the same server to obtain large files.
What I would like to be able to do is reschedule a task at a random time, so that each machine will not connect at the exact same time. I want to be able to utilize Windows NT and Windows 2000 scheduling services that are already on the machine. So some how, passing a random time into the command line or something.
Any suggestions would be greatly appreciated.