Shutdown another LAN machine by command line?

G

Guest

I'm trying to shut down (and ideally, wake up) a number of machines on my LAN
from a batch file. The shutdown command looks like it ought to work but just
keeps saying "Access is denied".

All machines on my LAN are running XP Home. The machines are acting as a
render farm, and while I can remotely control them using VNC it's a pain to
remotely access each one in turn to shut them down.

What do I have to do to an XP machine like \\RENDERBOX2 in order for

"shutdown -r -f -m \\RENDERBOX2 -t 60 -d up:125:1"

to work?

Also, is there a commandline (ie batch-file-able) app built into XP Home
that'll let me *wake* a remote machine? Save me going into the other room and
pressing all their power buttons?

Thanks,

h
 
H

h

Sooner Al said:
You might be interested in this page about Wake-On-LAN...

http://www.michna.com/kb/WxWOL.htm

Thanks for the suggestion - at least I've now established my NICs don't
support WOL... Back to the original problem, though:

I downloaded the psshutdown utility suggested by the page but still get an
Access is denied message.

Is this a Home vs Pro thing? Anyone here got a LAN with a couple of XP
machines on it? Just try opening a cmd prompt and typing "shutdown -s
\\othermachinename" and let us know if it works...

Cheers,

h
 
S

Shenan Stanley

h said:
Thanks for the suggestion - at least I've now established my NICs
don't support WOL... Back to the original problem, though:

I downloaded the psshutdown utility suggested by the page but still
get an Access is denied message.

Is this a Home vs Pro thing? Anyone here got a LAN with a couple of
XP machines on it? Just try opening a cmd prompt and typing
"shutdown -s \\othermachinename" and let us know if it works...

You have to either be logged into the local machine as a user with the
rights needed to shutdown the remote machine (same username/password) or you
need to use some application (like PSEXEC) to run the shutdown command on
the remote system AS a user with permissions to perform said command (PSEXEC
will let you specify username/password for running the application(s) on the
remote machine.)
 

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