tim golden cggctimgoldenmeuk le dahut wrote reboot computer ive tried different functions win32apiexitwindowsexewx_reboot ewx_force win32apiinitiatesystemshutdownnone 0 true 1 win32tswtsshutdownsystemwtswts_current_server_handle wtswts_wsd_reboot wawinexecshutdown r 0 f ive correctly setup seshutdownprivilege calling bforceappsclosed set true since noticed didnt reboot computer raised error ive put loop true try waexitwindowsex break except exception e loggingerrorse timesleep05 permits reboot workstation several minutes 3 9 minutes im sure personally offer much le dahut would help showed traceback getting surely theres clue might suggest youre prevented rebooting delay period tjg _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 wed 06 aug 2008 134255 0000 pythonwin32 reboot apis dont work nt service