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

Scheduled task every 5 minutes

Status
Not open for further replies.

72Stingray

IS-IT--Management
Oct 15, 2004
22
US
I know you can manually create a scheduled task that runs every 5 minutes. However, in searching the internet I don't see anywhere that shows how to create anything other than a very simple scheduled task using VBScript. Are the advanced parameters available from VBScript. I've searched the forum and found that generally when this question is asked the answer is to call a script that calls another script every X minutes.
I'm trying to create a single scheduled task that runs every 5 minutes so I can use it in a corporate environment to check a central location and run a script if I've put one there. It would be used for scripts that make emergency modifications or check one time items.
My current scripts all run from my central system and parsing through the entire AD domain for 500+ systems can take hours. I'd like to be able to place a script in a central location that has read only access and have all the systems run it and populate a central database with their information within minutes instead of hours. Another examply might be; we are aware a new virus came out and I need to check our McAfee DAT's. I would write a simple script telling the systems to report their data to a central database location then within minutes would have the data at my fingertips. I would use this for many other tasks also.

Thanks,

Mark
 
Apparently you cannot install the scheduled task through scripting as you wish. See the "Managing Scheduled Tasks" page at Microsoft TechNet:


However, I did find that the job files created by the Task Scheduler GUI can be copied to other machines (link below). So you can setup your job on the first PC, set it to run with domain account that has needed rights, set the advanced options for repeat every 5 minutes, then copy it to %systemroot%\tasks folder on all other pc's.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top