[python-win32] rebooting windows from Python?
whatyoulookin at yahoo.com
Thu Dec 4 21:04:05 CET 2008
I'm wondering if there's some way to reboot or shutdown Windows from within Python?
I can log out like this:
And according to the documentation, I should be able to shutdown like this:
But that returns the following error:
'A required privilege is not held by the client.'
Is there some way to do this? Currently I'm running shutdown.exe, which works, but I'd rather do it directly if possible.
Thanks for any help.
More information about the python-win32