Having Problems Creating A Custom Service Monitor Calling A Vbscript

by Nov 13, 2013

I am attempting to create a custom monitor that will call a vbscript file. The script is located in a folder named C:SupportScripts and does not contain any spaces.

I have tried the following:
1. The full path in script name (using / instead of ) to the vbs file. I receive the error: “Cannot run program (in directory “C:supportscripts”): CreateProcess error=193, %1 is not a valid Win32 application.
2. The full path to cscript.exe in script name and the full path to the vbs file in arguments. I have tried both / and in the vbs path. I receive the error: “Input error: There is no file extension in “C:windowssystem32localhost.”
3. The full path top cscript.exe followed by the full path to the vbs file in script name. I receive the error “Script file not found”. If I copy and paste the displayed path in to a command box (after changing the / back to ) it runs.

I am at a loss as to what I am doing wrong…