The help messages provided in the PowerShell scripts for adding and removing Universal Instances of JEE Application Servers to SCOM 2012 contain minor typos.

The help messages (a) have the wrong script names and (b) should contain relative path to the directories.  For the later, by this I mean that these script are expected to be run from the current directory and when executing these in an Operations Manager PowerShell prompt it should be indicated as such (i.e. start the script with .\) characters.

 

The correct usage information is as follows:

NewJEEAppServer.ps1

Discovers JEE App Servers into Operations Manager.  BeanSpy should be deployed to each application server to be discovered.

Input:

  The script accepts a number of JEE App Servers on the input pipe.
  Each JEE App Server is represented as a fully qualified URL, for example, http://www.contoso.com:8080.

Output:

  The script displays an error message for each app server it fails to discover.

  Parameters:
   ManagementServer         - Name of OpsMgr server to use.  Use current computer if not specified
   JEEAppServerType         - Supported types are JBoss, Tomcat, WebSphere, and WebLogic.
                              Will query each application server if not specified.
   JEEAppServerVersion      - Supported versions are JBoss 4, 5, 6, Tomcat 5, 6, 7, WebSphere 6, 7,
                              and WebLogic 10, 11. Will query each application server if not specified.
  
UserName                 - User name to access the App Server URL. If provided, the script will prompt for
                              password
   Target                   - Additional JEE App Server to discover
                             (done before any JEE App Server piped into the script)

   help                     - Prints this help

Examples:

.\NewJEEAppServer.ps1 -Target http://www.contoso.com:8080

type c:\MyAppServers.txt | .\NewJEEAppServer.ps1 -JEEAppServerType WebLogic -JEEAppServerVersion 11

type c:\MyAppServers.txt | .\NewJEEAppServer.ps1 -UserName mymonitor

RemoveJEEAppServer.ps1

Removes JEE App Servers from Operations Manager.

Input:

The script accepts a number of JEE App Servers on the input pipe.

Each JEE App Server is represented as a fully qualified URL, for example, http://www.contoso.com:8080.

Output:

The script displays an error message for each app server it fails to remove.

Parameters:

  ManagementServer         - Name of OpsMgr server to use.  Use current computer if not specified
  Target                   - Additional JEE App Server to discover
                             (done before any JEE App Server piped into the script)

  help                     - Prints this help

Examples:

  .\RemoveJEEAppServer.ps1 -Target http://www.contoso.com:8080
  type c:\MyAppServers.txt | .\RemoveJEEAppServer.ps1