win32api.InitiateSystemShutdown and 'Access is denied'
uwe_becher at gmx.de
Thu Aug 29 19:51:35 CEST 2002
I'm trying to shutdown my local W2K machine using
win32api.InitiateSystemShutdown(computer, "Rebooting!", 0, 1, 1)
pywintypes.api_error: (5, 'InitiateSystemShutdown', 'Access is denied.')
while shutting down any remote machine works fine. The error happens on
a Python 2.1.1 as well as on Python 2.2.1.
Does someone have an idea?
More information about the Python-list