Question Locked

Exporting commands from Task Scheduler

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a number of PC's in various buildings, that need to be shutdown at different times in the evening. I currently do this using the shutdown.exe -f command in scheduler.

Currently, all machines are set to a single time (eg. 5:15pm). In order to change the scheduled time, I have to manually edit each PC (c:\windows\tasks\shutdown).

I would like to be able to upload a patch file (registry or other), that will change the existing shutdown time. I can't find where this time is retained (eg. registry; services; etc).

The PC's are all running Windows XP/SP2. Due to commercial restrictions, I can't use 3rd party applications, and must rely on the inbuilt options of Windows.

Any pointers or assistance that anyone can offer would be greatly appreciated.

2 replies

by bizzo

There are a couple of ways you could do this, either use the AT command on each of the machines, http://support.microsoft.com/kb/313565
or if you should be able to just copy the scheduled job. Have a look in HKLM\SOFTWARE\Microsoft\SchedulingAgent\ and the value of TasksFolder (in my case it's %SystemRoot%\Tasks). This folder contains all the scheduled jobs. You should be able to just copy these to the machines.

This discussion is closed to new replies.