how to schedule shutdown.exe?

L

ljb

I've tried to schedule shutdown.exe to shutdown my PC each night but I
doesn't run on schedule. I have checked the option to run it even if not
logged on, given it username, password and -f to force it. Similar settings
work fine for Norton Antivirus. If I check the event log I see that Norton
started and ran but Shutdown never even starts. Anyone have any ideas? OS is
XP Pro.

thanks
LJB
 
W

Wesley Vogel

Gladly stolen from Ramesh
http://www.mvps.org/sramesh2k/

Use Task Scheduler to schedule the computer to shut down and restart at a
specific time.

To do so, follow these steps:

01. Create a shortcut to %windir%\System32\shutdown.exe -s -t 00.
02. Click Start, and then click Control Panel.
03. Click Performance and Maintenance, and then click Scheduled Tasks.
04. Double-click Add Scheduled Task. The Scheduled Task Wizard starts.
05. Click Next.
06. Under Click the program you want Windows to run, click Browse.
07. In the Select Program to Schedule dialog box, locate the
shortcut that you created, click it, and then click Open.
08. Under Perform this task, specify a name for the task and how frequently
you want this task to run, and then click Next.
09. Under Select the time and day you want this task to start, specify a
start time and date for the task, and then click Next.
10. Type the user name and password to run this task under, and then click
Next.
11. Click to select the Open advanced properties for this task when I click
Finish check box, and then click Finish.
11. Click the Task tab.
12. In the Run box, change it to read:
%windir%\System32\shutdown.exe -s -t 00
Change the Start in box to read:
%windir%
13. Click OK.

NOTE: For exact parameters for shutdown.exe, open cmd and type
shutdown.exe /?

You Cannot Schedule a Windows XP-Based Computer to Shut Down and Restart by
Using the AT Command with Shutdown.exe:
http://support.microsoft.com/default.aspx?scid=kb;en-us;814761
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top