---
updatedAt: 2026-10-13T14:48:34.000Z
agentTools:
  projectIndex: https://docs.axonius.com/llms.txt
---

# Windows Management Instrumentation (WMI)

Windows Management Instrumentation (WMI) is a set of specifications from Microsoft for consolidating the management of devices and applications in a Windows network. WMI provides users with information about the status of local or remote computer systems.

The WMI adapter executes Command Prompt commands and WMI queries using the DCOM (Distributed Component Object Model) protocol that interacts with the WMI service.

<Callout icon="far fa-circle-info" theme="info">
  ### Note

  This adapter has an extended device deletion threshold and per-connection custom scheduling enabled by default. Devices discovered by this adapter stay visible in Axonius for 90 days before being deleted if not seen again, and each connection can now be configured with its own custom discovery schedule.
</Callout>

## Types of Assets Fetched

This adapter fetches the following types of assets:

* Devices

The WMI scan retrieves important information about the device, including (but not limited to):

* Hostname
* Network Interfaces - including MAC addresses, IP addresses, and subnets
* Operating system, kernel version, and distribution
* List of installed software
* Users and admin users
* Hard drives and file systems
* CPUs and RAM
* Hardware details, including serial numbers'

## Before You Begin

### Setting WMI access

To perform these steps:

* You must have local administrator rights on the target machine.
* The user to which you want to grant access must have an account on the target machine (local or domain).

#### Enable WMI Service & Firewall Rules

1. Run the following command: `Get-Service Winmgmt`. If this doesn't work, run `Start-Service Winmgmt`.
2. To open Windows Firewall for WMI, run the following command: `Enable-NetFirewallRule -Group "Windows Management Instrumentation (WMI)"`.
   This opens TCP 135 (RPC) and other dynamic RPC ports used by WMI.

#### Configure DCOM Permissions

1. To configure DCOM permissions (for remote access), run `dcomcnfg` (**Start** → **Run** → `dcomcnfg`).
2. Navigate to **Component Services** → **Computers** → **My Computer**.
3. Right‑click on **My Computer** and select **Properties**.
4. Navigate to the **COM Security** tab.
5. Under **Launch and Activation Permissions**, select **Edit Limits…**
   * Add your user (or group) and check **Remote Launch** and **Remote Activation**.
6. Under **Access Permissions**, select **Edit Limits…**
   * Add the same user (or group) and check **Remote Access**.
7. Click **OK** to save.

#### Grant WMI Namespace Access

By default only admins can query WMI namespaces. To permit a non‑admin:

1. Run `wmimgmt.msc` (**Start** → **Run** → `wmimgmt.msc`).
2. Right‑click on **WMI Control (Local)** and select **Properties**.
3. Select the **Security** tab and expand **Root → CIMV2** .
4. Click **Security** → **Add…** and add your user (or group).
5. In the permissions list, check the following:
   * **Enable Account**
   * **Remote Enable**
6. Optionally, if you run custom providers, check **Execute Methods** and **Provider Write**.
7. Click **OK**.

#### Test Remote WMI Access

From another machine (PowerShell), run the following (ensure to enter real values for Target, UserName):

```
Get-CimInstance -ClassName Win32_OperatingSystem -ComputerName TARGET -Credential (Get-Credential DOMAIN\UserName) 
```

If the run succeeds, you’ll see the OS details returned.
If the run fails, check the firewall, DCOM, or namespace permissions.

### Setting SMB Share

The WMI adapter must have an SMB share configured in the machine for it to work.

1. To create the folder, run: `New-Item -Path "C:\Windows\axonius" -ItemType Directory -Force`
2. To create the SMB share, run: `New-SmbShare -Name "axonius" -Path "C:\Windows\axonius" -FullAccess "DOMAIN\UserOrGroup"`
   * Change DOMAIN\UserOrGroup to the name of the user or group that will access the share.
3. SMB share permissions are separate from NTFS. To set NTFS permissions, grant access to the underlying folder by running:

```
$folder = "C:\Windows\axonius"
$identity = "CONTOSO\AxoniusSvc"  # Replace with your user/group
$acl = Get-Acl $folder
$rule = New-Object System.Security.AccessControl.FileSystemAccessRule(
    $identity, "FullControl", "ContainerInherit,ObjectInherit", "None", "Allow"
)
$acl.AddAccessRule($rule)
Set-Acl -Path $folder -AclObject $acl
```

4. To enable the Windows Firewall rules for file sharing, run `Enable-NetFirewallRule -DisplayGroup "File and Printer Sharing"`
   This opens the following ports:
   * TCP 445 – SMB over TCP (main)
   * UDP 137/138, TCP 139 – used for legacy NetBIOS/SMB
5. To double-check the open port, run: `Get-NetTCPConnection -LocalPort 445`
6. To test the share from another machine (PowerShell), run the following (enter the machine hostname for TargetComputer): `Test-Path "\\TargetComputer\axonius"`
7. To copy the test file, run: `Copy-Item C:\test_file.txt \\TargetComputer\axonius\`.

### Required Ports

* 135 (RPC)
* 445 (SMB)
* Random port in the range 1024-65535 - see [Setting Up a Fixed Port for WMI](https://docs.microsoft.com/en-us/windows/win32/wmisdk/setting-up-a-fixed-port-for-wmi?redirectedfrom=MSDN).

### Required Permissions

1. The working directory for the files created via the WMI connection is 'ADMIN$\axonius'.

2. The value supplied in [**User Name** and **Password**](#parameters) requires the following permissions:

* Either domain  admin permissions or local admin permissions to the user/group that the user belongs to.
* Read/write access to the ADMIN$ share.

## Parameters

1. **Hostnames / IPs / CIDRs List** *(required)* - Specify a comma-separated list of hostnames, IP addresses or CIDRs to be scanned.
2. **User Name** and **Password** *(required)* - The credentials for a user account that has the permissions to run a WMI scan on the provided asset list specified in the **Hostnames / IPs / CIDRs List** field.
3. **DNS Servers** *(optional, default: empty)* - Specify a comma-separated list of DNS servers to be used to resolve the hostnames specified in the **Hostnames / IPs / CIDRs List** field.
   * If supplied, Axonius will use the specified DNS server to resolve the hostnames specified in the **Hostnames / IPs / CIDRs List** field. For each asset, the first response will be the one to be used.
   * If not supplied or if no response has been received from any of the specified DNS servers, the default DNS server will be used.
4. **Use NBNS** *(optional)* - Check to use the NetBIOS Name Service protocol.

For details on the common adapter connection parameters and buttons, see [Adding a New Adapter Connection](https://docs.axonius.com/axonius-help-docs/docs/adapters-screen#adding-a-new-adapter-connection).

![WMIParameters](https://raw.githubusercontent.com/Axonius/ax-docs-pub/refs/heads/main/Images/image-D4ZQF9JV.png)

## Advanced Settings

<Callout icon="far fa-circle-info" theme="info">
  **Note**

  Advanced settings can either apply for all connections for this adapter, or you can set different advanced settings and/or different scheduling for a specific connection, refer to ​[Advanced Configuration for Adapters](https://docs.axonius.com/axonius-help-docs/docs/advanced-configuration-for-adapters)
</Callout>

1. **Number of parallel connections** *(required, default: 5)* - Specify the number of connections to be opened to control the performance of the scan.
2. **Fetch software licenses information** *(default: false)* - Select this option to fetch software licensing product information from each host. The results are presented in a list field called 'Software Licensing Product Information'.
3. **Fetch Remote Desktop client access licensing information** *(default: false)* - Select this option to fetch information from the Remote Desktop Client Access Licensing Server. This setting  only  works for RDS Licensing Server hosts. Refer to [Activate the Remote Desktop Services license server](https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-activate-license-server) to learn how to activate this on a host.
4. **Fetch SQL Server License information** - Set this option to search for Microsoft SQL Server license information on the machine’s registries and fetch it.
5. **Fetch installed software from Win32\_Product class**  - Select this option to fetch data from the Win32\_Product class.
6. **Registry keys to get key-value pairs** - Enter Registry keys for which the system searches for the values on specific registries of the windows computer and stores them in a field called 'Validated Registry Keys - Existing Values' in the device.

<Callout icon="far fa-circle-info" theme="info">
  **Note**

  For details on general advanced settings under the **Adapter Configuration** tab, see [Adapter Advanced Settings](https://docs.axonius.com/axonius-help-docs/docs/advanced-settings).
</Callout>

### Related Enforcement Actions

* [WMI - Create or Delete DNS Records](https://docs.axonius.com/axonius-help-docs/docs/wmi-create-or-delete-dns-records)
* [WMI - Enrich Devices with DNS Records](https://docs.axonius.com/axonius-help-docs/docs/enrich-device-data-with-dns-records)
* [WMI - WinRM Scan](https://docs.axonius.com/axonius-help-docs/docs/winrm-scan)