shutdown command

  • Thread starter Thread starter sam
  • Start date Start date
S

sam

I would like to set a scheduled task to auto shutdown my
computer each night, but i'm not sure where that command
is. Anyone know where the command is that will start the
shutdown process and turn off my computer? thanks
 
the command 'rundll32 shell32,SHExitWindowsEx 0' can be used to shutdown
your PC - you could set that as a scheduled task

M
 
Interesting. I thought rundll32 command works for Win98 only.

Here's what I used in my WinXP. Create a shortcut with this command, and
create a scheduled task if you want to automatically run it at a certain
time.

C:\WINDOWS\system32\SHUTDOWN.EXE -S -T 15

Steve
 
Mark said:
the command 'rundll32 shell32,SHExitWindowsEx 0' can be used to shutdown
your PC - you could set that as a scheduled task
Hi

That will not work for Windows XP, use shutdown.exe instead as
suggested by Steve.

Note that you might get a "It's now safe to turn off your
computer" with shutdown.exe.

In that case:

Try PsShutdown.exe in the PsTools suite with the -k switch (poweroff)
http://www.sysinternals.com/ntw2k/freeware/pstools.shtml
 

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

Back
Top