shutdown windows pc from mac

Hi all, is there a way to send a shutdown command from a Mac to a windows machine, assuming they're on the same network?

Thankyou! 🙂

iMac 21,5 9400M - Mac Mini C2D 1.83 - iPhone 3G 8gb, Mac OS X (10.6.2)

Posted on Nov 16, 2009 7:03 AM

Reply
7 replies

Nov 19, 2009 10:18 PM in response to Francesco Villa

I use a vb script to shut down Windows machines (there are other ways to do this too):

'BEGIN VBS *************************************************************************
Set OpSysSet = GetObject("winmgmts:{(Shutdown)}//./root/cimv2").ExecQuery("select * from Win32_OperatingSystem where Primary=true")

for each OpSys in OpSysSet
OpSys.Shutdown()
next
'END VBS *************************************************************************

Save that code as 'ShutdownComputer.vbs' and then execute it.

Nov 21, 2009 2:16 AM in response to Francesco Villa

Hi all, thanks for your replies.
I've decided to connect the UPS to the w2k3 machine: it's a server and it's running 24/7. When the ups kicks in the w2k3 pc shuts down automatically, but only after sending via ssh a wakeup and a shutdown command to the mac.
I've foud this software www.ups-software-download.com that seems to run on osx... it may be useful.

Bye 🙂

Message was edited by: Francesco Villa

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

shutdown windows pc from mac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.