Install the Service Monitor from the Command Line (Advanced Users Only)

Advanced Users can install the Service Monitor from the command line by running Cherwell Service Monitor.exe. When installing from the command line, define:

  • Settings: Where to install the files, what type of server to monitor, what title to display on the website banner, and default access.
  • Access: Who can view and make changes to the Service Monitor (access is generally defined through default rights, and access is specifically defined via a list of Users.

The tables list the settings and access commands.

Note: Installs for ALL USERS by default.
Available Settings Definition Default Values
                                        INSTALLDIR
                                    
Location/folder in which to install the Service Monitor files. [programfilesfolder]\Cherwell Service Management (default)
                                        CW_ISPRODUCTION
                                    
Type of server to be monitored.
  • True = Production (default)
  • False = Non-production
                                        CW_TITLE
                                    
Title to be displayed on the Service Monitor web page. Cherwell Service Monitor (default)
                                        CW_DEFAULTACCESSISREADONLY
                                    

Default access to the Service Monitor.

This is the default access for Users who are not explicitly given access through the Read/Write Permissions List.

  • 1 = Read-only (default)
  • 0 = Access denied.
The following are set only through the command line. Note: View = Read-only access (example: View service status in the Service Monitor but no edit); Edit = Full read/write access (example: View service status AND start/stop/restart services in the Service Monitor.
                                        CW_USERSWHOCANALWAYSEDIT
                                    
List of Users who explicitly can edit the Service Monitor (full read/write access).

Blank (default), but information is required.

Comma delimited list of Users.

Format: DOMAIN\Username if the server is joined by a domain. Ex. Cherwell\Henri.Bryce

                                        CW_USERSWHOCANNEVEREDIT
                                    
List of Users who explicitly cannot edit the Service Monitor (access denied).
                                        CW_ADMINISTRATORSCANVIEW
                                    
Allow Users in the OS-level Administrator Group to view but not edit the Service Monitor (read-only access).
  • True
  • False (default)
                                        CW_ADMINISTRATORSCANEDIT
                                    
Allow Users in the OS-level Administrator Group to edit the Service Monitor (full read/write access).
  • True
  • False (default)

The following is an example command line:

                        Cherwell Service Monitor.exe" /s /v"/qn CW_USERSWHOCANALWAYSEDIT=”user list” CW_DEFAULTACCESSISREADONLY=”1”"
                    
                        
                        
                    

Anything Variable that is passed and has spaces requires the quotes be proceeded by a \. If there are not spaces, this is not required ; however, it will not hurt anything if they are used:

                        Cherwell Service Monitor.exe" /s /v"/qn CW_USERSWHOCANALWAYSEDIT=\”user list\” CW_DEFAULTACCESSISREADONLY=\”1\”"