D. Discovery > D.3. Discovery of WMI Devices > PowerShell

PowerShell is a key component that needs to be correctly installed on the MID Server for successful Discovery of Windows Devices. Without PowerShell (and supporting configurations in ServiceNow), ServiceNow doesn't use the Credentials under the Credential Module under the Discovery Application and defaults to using the same credentials that are configured for the MID Server.

The Sections below help ensure that PowerShell is configured correctly on the MID Server.



Troubleshooting which MID Server doesn't have PowerShell Installed
Installing and Configuring PowerShell | Verifying PowerShell has been correctly Installed



Troubleshooting which MID Server doesn't have PowerShell InstalledTop

1. Navigate to the dscy_credentials_affinity.list table and group the list by windows to identify all the Credential Affinities associated with Windows Credentials.

2. For each of the Credential Affinities, identify the set of MID Servers corresponding to these affinities.

3. The MID Servers that do not show up as a part of this list are candidates for additional troubleshooting for PowerShell.



Installing and Configuring PowerShellTop

1. Download PowerShell and install it on each MID Server configured to discovery Windows Devices. Its best to download PowerShell directly from Microsoft. (Download the correct version based on the Operating System of the host running the MID Server)

2. Enable PowerShell for Discovery by setting the mid.use_powershell MID Server Parameter to true on all MID Servers (version Fuji and above). [Note: For pre-Fuji versions, set the mid.use_powershell MID Server Parameter to false to enable PowerShell]
To find this Property, go to: MID Server > Properties

3. Enforce PowerShell to use Credentials from the ServiceNow Credentials Table by setting the mid.powershell.use_credentials MID Server Parameter to true.



Verifying PowerShell has been correctly InstalledTop

1. Open a Command Prompt on the Windows MID Server Host.

2. Type powershell and press Enter.

3. To check for PowerShell version, type powershell get-host and press Enter.

If PowerShell is installed, you will see the command prompt prefixed with PS. This indicates that PowerShell is installed correctly. If you get an error, you need to follow the steps to Install and Configure PowerShell.




For more information, contact us at info@quicknexus.com