Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

MID Server parameters for PowerShell

Parameters control the behavior of a particular MID Server and have lower precedence than MID Server properties.

The following parameters are optional.

Note: After changing the setting for any parameter, be sure to restart the MID Server service.

NameDescription
mid.powershell\_api.session\_pool.max\_size

Specifies the maximum number of sessions allowed in the session pool.

Note: Setting or changing this parameter requires restarting the MID Server.

  • Type: Integer
  • Default value: 25
mid.powershell\_api.session\_pool.target.max\_size

Specifies the maximum number of sessions allowed in the pool per target host.

Note: Setting or changing this parameter requires restarting the MID Server.

  • Type: Integer
  • Default value: 3
mid.powershell\_api.winrm.use\_sslRequires the use of SSL certificates for HTTPS connections using WinRM.- Type: True \| False - Default value: false
mid.powershell\_api.winrm.additional\_pssesion\_optionsControls advanced options for a PSSession. For more information about advanced PSSession options, see https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/new-pssessionoption?view=powershell-6.
mid.powershell\_api.winrm.remote\_https\_portConfigures the port for connecting to Windows servers using PowerShell over HTTPS. - Type: Integer - Default value: 5986
mid.powershell\_api.winrm.remote\_portConfigures the port for connecting to Windows servers using PowerShell over HTTP. - Type: Integer - Default value: 5985
mid.powershell\_api.winrm.skip\_ssl\_cert\_checkSkips the SSL certificate check when using WinRM for HTTPS connections.- Type: True \| False - Default value: false
mid.powershell\_api.winrm.skip\_ssl\_cert\_check\_optionsSkips specific SSL certificate checks when using WinRM for HTTPS connections. Configure the MID Server to skip checks for certificates from a Certification Authority \(CA\), from the Common Name \(CN\) that identifies the host associated with the certificate, and for revoked certificates. - Type: String - Default value: -SkipCACheck -SkipCNCheck -SkipRevocationCheck
mid.powershell\_api.wmi.use\_reverse\_dns\_lookup

Enable this property to utilize Kerberos authentication when employing the WMI protocol to communicate with Windows target devices. When activated, the system performs a reverse DNS look-up of IP addresses, enabling the use of Fully Qualified Domain Names (FQDN) instead of IP addresses. This can facilitate Kerberos authentication.

Note: Note: If the reverse DNS look-up fails, the system may revert to using the IP address. Additionally, performing reverse DNS look-ups on IP addresses may impact performance.

  • Type: True \| False

  • Default value: False

mid.powershell.use\_credentialsDetermines the credentials to use for Discovery with PowerShell. A setting of true directs the MID Server to run probes with the Windows credentials from the credentials table. To run probes with the credentials of the user for the MID Server service, set this parameter to false. - Type: true \| false - Default value: true
mid.use\_powershellEnables or disables PowerShell for Discovery. Restart the MID Server after changing the value. If PowerShell is not installed or the version installed is less than version 2.0, Discovery reverts to using WMIRunner. - Type: true \| false - Default value: true
mid.powershell.path

Enables an administrator to point to a specific PowerShell on a MID Server in cases where more than one PowerShell is installed. Supply the path to the folder containing the PowerShell executable, for example, C:\mypowershell or C:\mypowershell\. ServiceNow automatically appends the string powershell.exe to the path. Configure this parameter when both a 32-bit and 64-bit PowerShells are active on the same MID Server, and it becomes necessary to launch the correct PowerShell for the context. 64-bit Windows employs file system redirection and the MID Server runs as a 32-bit application. If trying to specify a path in %WinDir%\System32, Windows automatically redirects to %WinDir%\SysWOW64. To avoid redirection, specify the path as %WinDir%\Sysnative. For example, instead of C:\WINDOWS\system32\WindowsPowerShell\v1.0\, specify C:\WINDOWS\sysnative\WindowsPowerShell\v1.0\.

Note: On a 64-bit version of Windows XP, a Microsoft hotfix may be required to enable this.

To discover applications running on a 64-bit Windows machine, the MID Server must be running on a 64-bit Windows host machine.

  • Type: string (path)
  • Default value: none
mid.powershell.enforce\_utf8Enable this parameter to force commands on a target Windows system to return UTF-8 encoded output. Disabling it allows the target system to use its default encoding. This parameter is only valid when PowerShell is enabled.Setting this value to false may result in incorrect values in the CMDB when non-ASCII characters are returned by a probe. - Type: true \| false - Default value: true
mid.powershell.local\_mid\_service\_credential\_fallbackSpecifies the login credentials the MID Server uses if all other credentials fail.- Type: True \| False - Default value: true
mid.powershell\_api.idle\_session\_timeout

Specifies the timeout value of idle PowerShell sessions in seconds.

Note: Setting or changing this parameter requires restarting the MID Server.

  • Type: Integer
  • Default value: 60
mid.powershell.command.parameter\_passingEnable this parameter to allow passing PowerShell parameters from the command line.- Type: True \| False - Default value: false
mid.powershell.command.script.parameter\_passingEnable this parameter to allow passing PowerShell scripts from the command line.- Type: True \| False - Default value: false
mid.windows.management\_protocolEnables administrators to select the Windows management protocol used for device and process classification. Options include: - WMI - WinRM - Type: String - Default value: WMI
mid.windows.probe\_timeoutSets the timeout interval for all Windows probes on a specific MID Server. This value is overridden by the values configured for individual probes with the wmi\_timeout probe parameter.- Type: Integer - Default value: 600

Parent Topic:PowerShell for Discovery and Service Mapping