Some details:
- - I am running HostMonitor v8.86 on Windows 2008 R2.
- I have the HostMonitor service set to log on as Local System account.
- I tried "Allow service to interact with desktop" both checked and unchecked
- I have a domain user account and password configured in HostMonitor's Options Service tab.
- That domain account is a member of the local Administrators group on the server.
- The test works when I am logged into the server as that domain account and I run HostMonitor interactively.
Code: Select all
WScript.StdOut.Write "scriptRes:Ok:0"
Code: Select all
cmd /c cscript /B /E:VBScript %Script%
I used the SysInternals ProcMon (Process Monitor) tool to see what was going on - and hopefully discover some obvious problem - when the test executed in each instance (HostMonitor running as a service, and HostMonitor running interactively). When running interactively ProcMon showed the 'cmd' process running and then the 'cscript' subprocess running, as expected. But when HostMonitor was running as a service the 'cmd' process ran but no 'cscript' subprocess ever started.
(Unfortunately ProcMon didn't reveal any obvious problem that I could see. The 'cmd' process just ended with no 'cscript' process ever appearing, and no indication that the 'cmd' process had any problem.)
Any suggestions on what might be the cause and/or other things to try to help determine the cause?
Thanks.