I am trying the win32api import InitiateSystemShutdown()
. Every time I run my code I get the error:
TypeError: InitiateSystemShutdown() takes no keyword arguments
Why is this?
Here is my code:
import win32api,pythoncom,sys
win32api.InitiateSystemShutdown(computername="HOMEPC",message="bob",timeOut=0, bForceclose=0,bRebootAfterShutdown=1)