[python-win32] rebooting windows from Python?

Mike Driscoll mdriscoll at co.marshall.ia.us
Fri Dec 5 19:25:26 CET 2008


Alec,

>> I've been using the following method that I found on
>> ActiveState's Cookbook, which I modified a little
>> (http://code.activestate.com/recipes/360649/):
>>     
>
> Does that method ever hang during shutdown? I've tested the WMI method a few times and got one hang, where it was asking me to terminate a process during logout. This even though I'm specifying the force shutdown flag.
>
>   

I haven't had it hang yet, but I'm using it for installing updates on 
freshly configured PCs, so theoretically, there's not much cruft running 
on the PCs I'm doing this to. We've had some McAfee and Nero related 
hangups when the user's restart their PCs, so it's possible that some 
poorly coded programs could hang it up...

All I can say is give it a shot and find out.

Mike


More information about the python-win32 mailing list