tags:

views:

222

answers:

2

How can I reboot a Windows XP64 Machine in a Python Script? This machine does not have the "shutdown" or "restart" executables available.

+2  A: 

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

Igorekk
Yes, but what functions?
Yeraze
i'm updated my answer
Igorekk
+4  A: 

found it

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

Yeraze
You should accept your answer (check mark) :)
srand