I have a script that I can run successfully from the command prompt using cscript.exe, but it won't run as a Windows Script Monitor in APM. I had to install the MS standalone MAPI client and and redemption.dll for this script, but as I said, it runs just fine with cscript.
This is the error I get:
2009-09-04 17:15:23,962 [10] ERROR SolarWinds.APM.Probes.WindowsScriptProbe - Script execution failed.
SolarWinds.APM.Probes.Script.WindowsScriptExecuteException: M:\Documents and Settings\All Users\Application Data\SolarWinds\Orion\temp\bf2f09b8-b0cc-46dd-9193-466a482a7768(34, 1) Redemption.RDOSession: Error in IMsgServiceAdmin::CreateMsgService: MAPI_E_NOT_FOUND
Error: This information service is not installed on your computer. To install it, use the Mail And Fax icon in the Control Panel.
Component: MAPI 1.0
It seems it has a problem invoking the MAPI system installed on the server, but I'm perplexed that it runs OK at command prompt running as the same user I'm running the script as (This user also has permissions on the mailbox I'm monitoring).
Any suggestions?