http://www.perlmonks.org?node_id=626226


in reply to Re^3: using TaskScheduler to reboot Win32 machine
in thread using TaskScheduler to reboot Win32 machine

Got it working. The problem was a space in the first param to InitiateSystemShutdown. It was trying to find a machine called '<space here>' instead of the local box.

Replies are listed 'Best First'.
Re^5: using TaskScheduler to reboot Win32 machine
by Rabbi Bob (Scribe) on Jul 12, 2007 at 16:40 UTC
    Great! Congrats