Have you checked for the last system message after the call from within Perl? That might tell if you if it's running at all and help determine the issue
print "SysMsg - " .
Win32::FormatMessage(Win32::GetLastError());
Also, anything in the event log after you attempt the run?
On the Windows side: I assume user/pass is a static account that will never change? Otherwise if you have a rotating password scheme for security in place, this will haunt you later in a bad way! | [reply] |
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.
| [reply] |