On Thu, Apr 15, 2010 at 12:11:03PM +0200, pacopyc wrote:
> Hi, I've a problem with locked PCs. I can shutdown them (with WMI), but 
> only if they are unlocked.
> How can I resolve it? Can you help me?


I think you can probably take the example here:

http://www.blog.pythonlibrary.org/2010/03/27/restarting-pcs-with-python/

The rebootServer.py example has this line:
win32api.InitiateSystemShutdown(None, message, timeout, bForce,bReboot)
So you want to set bForce=1 and bReboot=1


Kelly
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to