03 May 2011

Unable to execute .js file for Object Discovery in OpsMgr

Noticed that one of my monitored servers is giving up warnings on Health Service Modules


Looks like we have encountered issues on CScript executions on .JS files.

I went on further to the working folder and execute the .js script and I got hit with the following error

Input Error: There is no script engine for file extension ".js".

I then proceed to open command prompt and type

          ASSOC .js

and looks like the .js file is associated incorrectly.

Go back to command prompt and reassociate .js file

           ASSOC .js = JSFile

Restart Health Service and this should do the trick.