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
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32