I doubt you want this: > win32api.ExitWindowsEx(4 Or 2,0) ie: >>> 4 or 2 4 You probably mean this: >>> 4 | 2 6 I'm afraid I have no idea if that change will force the reboot! Mark.