---
sourceDocument: Brazil IT Operations Management
sourceDocumentLink: https://www.servicenow.com/docs/r/it-operations-management

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# Configure MID Server parameters for PowerShell 7

# Configure MID Server parameters for PowerShell 7 {#ariaid-title1}

Release version: Brazil  
Updated November 5, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Configure two MID Server parameters to run File-based Discovery and Windows ADME on target hosts that use PowerShell 7.

## Before you begin

Confirm the following:

* The instance is on the Brazil version of the ServiceNow AI Platform.
* PowerShell 7 is installed on the MID Server.
* PowerShell 7 is installed on target hosts.
* On each target host that runs PowerShell 7, DisableImplicitWinCompat is set to <kbd class="ph userinput">true</kbd> in the PowerShell configuration file. By default, PowerShell 7 loads certain modules through a background Windows PowerShell 5.1 session, which blocks Discovery scripts from running on PowerShell 7. For more information, see the "About Windows PowerShell Compatibility" article on the [Microsoft PowerShell](https://learn.microsoft.com/en-us/powershell/) documentation site.
* File-based Discovery or Windows ADME is active on the instance.
{#config-mid-params-ps7__ul_jtd_t3m_y3c}

Role required: agent_admin or admin

## About this task

By default, File-based Discovery and Windows ADME use PowerShell 5 on target hosts. To run these features on hosts that use PowerShell 7, create two parameters on the MID Server. Setting mid.powershell.prefer_7_plus controls the MID Server itself. Setting mid.powershell.prefer_7_plus_remote controls the target host. Each parameter defaults to `false` if not set, so any host where the parameter
is not configured runs on PowerShell 5.

## Procedure

1. Navigate to AllMID ServerServers.
2. Select the MID Server.
3. In the Configuration Parameters tab, select New.
4. Create the required parameters in the following table.  
   {#config-mid-params-ps7__table_fzg_wjm_y3c__entry__3}

   | Parameter name | Value | Description |
   |-|-|-|
   | mid.powershell.prefer_7_plus_remote | <kbd class="ph userinput">true</kbd> | Prefer PowerShell 7 or later, if available, on remote target hosts. Default: `false`. |
   | mid.powershell.prefer_7_plus | <kbd class="ph userinput">true</kbd> | Prefer PowerShell 7 or later, if available. Default: `false`. |
   [ ]

   {#config-mid-params-ps7__table_fzg_wjm_y3c}
5. Select Submit after each.

## Result

File-based Discovery and Windows ADME run using PowerShell 7 on the configured target hosts.
**Related concepts**   

* [File-based Discovery](https://www.servicenow.com/docs/8xMGZ5W2NjrtKxiEFu11Sg "File-based Discovery helps you identify what software is running on your Windows and UNIX servers and devices, even if there's no registration information available. You can then manage and maintain records of your software licenses, check for unlicensed files, detect forbidden or damaged files, and help evaluate any threats from unwanted files.")

*[\>]: and then


