> I have a problem when using the python script found here: > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/360649 > > It is a script to remotely shutdown a windows computer. When I use it, > the computer shuts down, but doesn't power off like with a regular > shutdown. It stays on the "Safe to power off" screen and I have to push > the power button to actually power off. Anyone know why this happens > with this script? Thanks for any help. > > Eric
I see that others have answered the question pretty completely, but just to add the obligatory WMI solution: [ assumes you're using the wmi module from http://tgolden.sc.sabren.com/python/wmi.html ] <code> import wmi c = wmi.WMI (computer="other_machine", privileges=["RemoteShutdown"]) os = c.Win32_OperatingSystem (Primary=1)[0] os.Win32Shutdown (Flags=12) </code> The Flags=12 bit should shut down all the way. TJG -- http://mail.python.org/mailman/listinfo/python-list