How to reboot a Windows XP64 machine on Python Script?

How to reboot a Windows XP64 machine on Python Script? This machine has no shutdown or restart executable files available.

+4
source share
2 answers

found him

win32api.InitiateSystemShutdown ("localhost", "Maintenance Reboot", 60, 1, 1)

+4
source

You can use the win32api module and call WinApi functions. Recipe at code.activestate.com

+2
source

All Articles