Remote Shutdown

J

JR

Another awkward question - sorry.

Trying to shut down remotely a Win2 server. Using shutdown.exe from command
line
"shutdown -s -m \\server /-t10" for 10 second delay. Shuts down server
but does NOT shut down the PC, leaving the old fashioned "It is now safe to
turn off your computer" message. Shutdown.exe is 5.1.2600.2180

HOW can I also get it to turn off the computer?

This is needed as I want to shutdown from other side of the world and as
only file server without AD can only access a desktop on another machine
through pcanywhere.

Thanks
JR
Somerset
 
P

Pegasus \(MVP\)

JR said:
Another awkward question - sorry.

Trying to shut down remotely a Win2 server. Using shutdown.exe from
command
line
"shutdown -s -m \\server /-t10" for 10 second delay. Shuts down server
but does NOT shut down the PC, leaving the old fashioned "It is now safe
to
turn off your computer" message. Shutdown.exe is 5.1.2600.2180

HOW can I also get it to turn off the computer?

This is needed as I want to shutdown from other side of the world and as
only file server without AD can only access a desktop on another machine
through pcanywhere.

Thanks
JR
Somerset

Awkward question indeed! This one had me intrigued, so I poked
around a fair bit. All of the references I found referred to hal.dll,
the PowerDownAfterShutdown registry entry or to APM drivers,
none of which helped. However, I struck paydirt with this command:

psexec.exe \\ComputerName c:\poweroff.exe poweroff

You can get psexec.exe from www.sysinternals.com and poweroff.exe
from http://users.pandora.be/jbosman/poweroff/poweroff.htm. Enjoy!
 

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

Similar Threads


Top