Install a MID Server on Windows
Install MID Servers with the MID Server guided Windows installation package. The package includes an installer that automatically configures OpenJDK to run in the environment. The MID Server can use an existing JRE rather than the provided OpenJDK. Uninstall the MID Server to redeploy it.
![]() |
- Verify that the host computer satisfies the MID Server system requirements.
- The MID Server requires the minimum PowerShell version 3.0 and supports versions up to PowerShell 5.1.
- Ensure that the Microsoft Application Experience Lookup Service is enabled on the MID Server host. If this service is disabled, the MID Server auto-upgrade might fail, causing the MID Server to go down. For information on managing issues with the Application Experience service, see KB0597552.
- CentOS 7
- Windows server 2008
- Windows server 2008 R2
- Windows 8
- Windows 10
Testing showed that the MID Server works as expected with Oracle Java 11 version 17.0.10. If you need to upgrade the JRE to a different version, then coordinate with the appropriate account representative for support.
- MID Servers upgraded from earlier versions use the OpenJDK provided with the MID Server installer. This version of the OpenJDK was tested and certified for use with these MID Servers.
- MID Servers upgraded on any other operating system versions also automatically upgrade the JRE to the version provided with the installation package.
Install a MID Server on Windows with guided installation
Install MID Servers with the MID Server guided Windows installation package. The package includes an installer that automatically configures OpenJDK to run in the environment.
始める前に
Role required: admin or mid_server
このタスクについて
The MID Server guided native Windows installer will configure the MID Server with provided settings. The installer creates the MID Server Service and assigns it to the provided user. The installer sets the file permissions on the MID Server Install folder. The installer allows for the configuration of proxy settings. Optionally, the installer can start the MID Server automatically.
手順
次のタスク
To upgrade the MID Server, see MID Server upgrades for procedures and requirements.
Uninstall a Windows MID Server with the guided installer
The MID Server guided native Windows installer also supports guided uninstallation of the MID Server.
始める前に
There are three ways to uninstall a MID Server after installing it with the guided native Windows installer.
手順
Configure Windows MID Server service credentials
MID Server service credentials are required to manage the MID Server service on the host machine, including its ability to successfully auto-upgrade.
始める前に
Role required: admin
このタスクについて
If you installed the MID Server using the native installer, you will not need to complete this procedure. However, to change the service user after the installation for any reason, use this procedure.
Windows service credentials control the level of privilege on the device. The user should not be a local system or an administrator level account (local admin, domain admin, etc.) The service account provided should have the log on as service right, which is a requirement for an account to be used as the log on user for a service.
Windows service credentials are not the same as the MID Server user credentials, which allow communication between the MID Server and the instance. You must configure both of these credentials separately. See Create the MID Server user and grant the role for instructions on MID Server user credentials.
手順
Windows MID Server silent installation and uninstallation
Silently installing the MID Server uses predefined parameters and requires no user input after it is initiated. You can use silent installation on several machines at once to quickly set up a network and to ensure all MID Servers have the same installation settings.
MID Server silent installation
powershell -command “.\SilentInstall.ps1 -<parameter_name1> ‘<value for parameter1>’ -<parameter_name2> ‘<value for parameter2>’ etc…”
- MSI_FILE_NAME: the name of the MSI file used for the installation.
- INSTALL_LOCATION : the location to install the MID Server.
- INSTANCE_URL: the target ServiceNow instance the MID Server will connect to.
- MID_USERNAME: the instance account name.
- MID_PASSWORD: the instance account password.
- MID_NAME: the name of the MID Server.
- SERVICE_ACCOUNT_NAME: the name of the service account.
- SERVICE_ACCOUNT_PASSWORD: the password of the service account.
- LOG_NAME: enables logging and puts logs into the file named by this parameter.
- START_MID: sets the MID Server to start automatically after the installation finishes.
- USE_PROXY: enables the use of a proxy. If you choose this
command, the following parameters become mandatory.
- PROXY_HOST: the name of the proxy host.
- PROXY_PORT: the port number of the proxy.
- PROXY_USERNAME: the proxy username. If there is no username, input ‘’.
- PROXY_PASSWORD: the proxy password. If there is no password, input ‘’.
- MANUAL_SERVICE_NAME: the service name. If you choose this
command, the following parameters become mandatory:
- SERVICE_NAME: the service name.
- SERVICE_DISPLAY_NAME: the service display name.
- MUTUAL_AUTH: enables mutual authentication. If this switch is enabled, MID_USERNAME and MID_PASSWORD are not required. See MID Server unified key store for more information.
After the script runs, verify the MID Server files, service, and entry in Programs and Features are installed. If you enabled logging, verify the log info in the file specified by the LOG_NAME parameter.
An example MID Server silent installation command:
powershell -command ".\SilentInstall.ps1 -MSI_FILE_NAME 'MID-Installer.msi' -INSTALL_LOCATION 'C:\Users\Administrator' -INSTANCE_URL 'https://my-instance-name.service-now.com' -MID_USERNAME 'mid_server' -MID_PASSWORD 'mid_password' -MID_NAME 'Silent_Install_MID' -SERVICE_ACCOUNT_NAME 'DOMAIN\My_Service_Account' -SERVICE_ACCOUNT_PASSWORD 'Service_Account_Password' -LOG_NAME 'Silent_Install_Log.txt'"
An example command using the START_MID switch:
powershell -command ".\SilentInstall.ps1 -MSI_FILE_NAME 'MID-Installer-Wix.msi' -INSTALL_LOCATION 'C:\Users\Administrator' -INSTANCE_URL 'https://my-instance-name.service-now.com' -MID_USERNAME 'DOMAIN\My_Service_Account' -MID_PASSWORD 'mid_password' -MID_NAME 'Silent_Install_MID' -SERVICE_ACCOUNT_NAME 'DOMAIN\My_Service_Account’ -SERVICE_ACCOUNT_PASSWORD 'Service_Account_Password' -LOG_NAME 'Silent_Install_Log.txt' -START_MID"
MID Server silent uninstallation
powershell -command “.\SilentUninstall.ps1 -MID_NAME ‘<value for MID_NAME>’ -LOG_NAME ‘<value for LOG_NAME>’”
The script requires the mandatory parameter MID_NAME, which is the name of the MID Server you want to uninstall.
The optional parameter LOG_NAME enables logging of the uninstallation and puts logs into the file named by this parameter.
After the script runs, verify the MID Server files, service, and entry in Programs and Features are uninstalled. If you enabled logging, verify the log info in the file specified by the LOG_NAME parameter.
An example MID Server silent uninstall command:
powershell -command ".\SilentUninstall.ps1 -MID_NAME 'silent_install_cmd' -LOG_NAME
'uninstall.txt'"
Manually install a MID Server on Windows
Install MID Servers with the ZIP file installation package and verify it is active.
始める前に
Role required: admin or mid_server
このタスクについて
Click this link to view the installation video:
- The MID Server account needs appropriate credentials to run a Discovery schedule. If the credentials are insufficient, the MID Server falls back to the user account's privileges. A non-admin user account may not have the necessary privileges to access the Discovery target.
- Enhanced Application Dependency Mapping (ADME) and File Based Discovery (FBD) may not work by default. To correct this issue, non-admin users need to be given permission to read/write to the Admin Share folder.
手順
Uninstall a Windows MID Server after manual installation
The MID Server runs as a stand-alone service. You can remove a stand-alone MID Server service to accommodate such tasks as redeploying the MID Server to another host machine or changing the unique name of a MID Server when deploying multiple MID Servers.
始める前に
Role required: admin
This procedure is only for users who install the MID Server using the ZIP file.
手順
次のタスク
Validate the MID Server to prepare it for use.
Configure a MID Server on Windows to use an existing JRE
You can choose to use an existing JRE for your MID Server rather than the OpenJDK provided with the MID Server installer.
始める前に
Role required: admin
