Koozali.org: home of the SME Server

Remote Shutdown Client Computers

shames

Remote Shutdown Client Computers
« on: October 30, 2005, 09:15:52 AM »
Hey All~
       I am Running SME Server 6. and I am interested in conserving power. I have been trying to find a way to remotely shutdown all the client computers within my local network at a set time, so I don't have to go to each one, and shut each of them down individually. Is there any way to use "etherwake" or some other program to send a "kill"/"shutdown" signal to all of the client computers?? Thanks In advance
Shames~

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
Remote Shutdown Client Computers
« Reply #1 on: October 30, 2005, 03:37:57 PM »
...ignoring for now that this may prove dangerous as in "you will lose all your unsaved client data"...

...at least let us know what OS do your those clients of your's work on?

Regards
Reinhold
............

shames

Remote Shutdown Client Computers
« Reply #2 on: October 30, 2005, 06:16:11 PM »
I Am Running Mostly Windows XP, but I have a couple of Suse Linux Pro 9.2 running as well..
Thanks
Shames~

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
Remote Shutdown Client Computers
« Reply #3 on: November 01, 2005, 03:28:38 PM »
shames,

Any LINUX client will remotely shutdown easily:
Code: [Select]
1. login:  -via shh-
2. execute: shutdown -h now


for your WINDOWS clients try RPC
(your mileage may vary!)
Code: [Select]
1. Right-click My Computer and select Manage.
2. On the Action menu, press Connect to another computer ....
3. Double-click a computer in the list.
4. Right-click Computer Management (<Name>) and press Properties.
5. On the Advanced tab, press Startup and Recovery.
6. Press the Shut Down button.
7. Select an Action:
      -Log-off-current-user
      -Shutdown
      -Powerdown
8. Select a Force Apps Closed action and press OK.


...as said before "watch out for loosing data" :-(

Regards
Reinhold
............

shames

Remote Shutdown Client Computers
« Reply #4 on: November 01, 2005, 06:33:34 PM »
Reinhold~
         Thanks For All Your Help!!! It Works Great!! I'll Be Careful With the Loss of Data thing As Well!! Thanks Again!
Shames~

dhardy

Remote Shutdown Client Computers
« Reply #5 on: November 01, 2005, 06:34:48 PM »
Windows XP can be made to shutdown from another XP/2003 box with:

Code: [Select]

c:>shutdown -s -m \\computername -t xxx


where xxx is the countdown time in seconds.

adding -f will force the shutdown. Doing it without the -f will cause those computers which are locked to ignore the command (so overnight runs can be preserved by locking the computer).

You can easily make a batchfile which does this for loads of computers, just run it when you go home - put your computer last in the list ......

I used this technique to deliver updated group policies to hundreds of computers over a weekend.

Run shutdown -? for more options or shutdown -i to do it with a GUI.

HTH

David