Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Peter.l.knudsen

macrumors newbie
Original poster
Aug 12, 2011
2
0
I would like to know how to shutdown other computers(both windows and mac) on a local wifi or lan network. I have a mac with lion, and would like some help! I believe that there must be an app for this purpose somewhere, but otherwise would some code be nice. Thanks :)

Peter
 
In the Mac

Code:
sudo shutdown -h now

If you open the terminal in Mac OS and enter

Code:
man shutdown

you get more details on other helpful options

I do that from time to time when laying in bed and too lazy to stand up; use remote shell via iPhone and switch off the iMac
 
But how can i shutdown an other computer from my mac???

Code:
ssh user@hostname

Like

Code:
ssh peter@192.168.1.1

That open you the unix shell for the target system to enter the shutdown. You would need to enable "Remote Login" on the Mac you want to login in system preferences -> Sharing.

Right now not on my Mac, cant make a screenshot

For Windows I don't know. I would use a Remote desktop (RDP protocol) in case your Windows variant allow that (like Ultimate).
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.