Scheduled Shutdown Does Nothing

J

Johnny Meredith

Hi all,

I have schedules an automatic shutdown on my XP machine at work.
Here's the command:

c:\windows\system32\shutdown.exe -s -m

When you run this command, a black command prompt box comes up for a
split second and, other than that, nothing happens. Even if I remove
the parameters, it still will not shut down the machine. Does anyone
know why?

Thanks,
Johnny
 
L

LittleMoo

Johnny Meredith said:
Hi all,

I have schedules an automatic shutdown on my XP machine at work.
Here's the command:

c:\windows\system32\shutdown.exe -s -m

When you run this command, a black command prompt box comes up for a
split second and, other than that, nothing happens. Even if I remove
the parameters, it still will not shut down the machine. Does anyone
know why?

Thanks,
Johnny

This is because it is a command line tool. To see it you need to go to
Start -> Run, type in cmd and hit enter.
This will bring the Command Prompt up.
From here you can type in "shutdown" without the quotes to get it's options.
You'll notice that the syntax for the -m command is "-m \\computername"
without the quotes, so you'll have to add the \\computername part and just
replace computername with the name of the computer you are trying to shut
down.

Although, if the syntax for the command is correct then the scheduled task
should work even though you only see the Command Prompt window for a split
second.

You might want to have a look at this site also:
http://www.aumha.org/win5/a/shutcut.php
It has some information on the shutdown command.

-Dan
 
P

Pennywise

Johnny Meredith said:
Hi all,

I have schedules an automatic shutdown on my XP machine at work.
Here's the command:

c:\windows\system32\shutdown.exe -s -m

-m is for a remote machine and expecting a computer name
Try c:\WINDOWS\system32\shutdown.exe -s -t 0
 

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