[python-win32] shutdown remote locked PC

Tim Golden mail at timgolden.me.uk
Thu Apr 15 12:49:52 CEST 2010


On 15/04/2010 11:11, 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?

Have you tried passing flags to the Win32_Shutdown method to
indicate a forced shutdown / logoff? I can't try it at the
moment, but I imagine some combination of flags would work.

TJG


More information about the python-win32 mailing list