If you have a domain controller and would rather not enable WMI device by device, please see How to enable WinRM with domain controller Group Policy.
Auvik uses the Windows Remote Management (WinRM) protocol to access Windows Management Instrumentation (WMI) data. This article walks you through how to enable and configure WinRM so you can use Auvik to remotely manage a single Windows device.
As you work through the steps, you may find your Windows servers are pre-configured with some of the required settings. But it’s a good idea to work through each step anyway to confirm all your settings are correct.
Prerequisites:
- You are logged in as an Administrator on the Windows machine.
- The device is part of a workgroup or domain with network access from the monitoring system.
- You know the IP or hostname of the monitoring server.
- The Network Profile on the machine MUST be set to private.To do this:
- Open Settings > Network & Internet > [Network Type, e.g., Ethernet or Wi-Fi].
- Click on the network you're connected to.
- Under Network Profile, select Private.
Enable the WMI Service
- Press Win + R, type services.msc, and press Enter.
- Scroll down and find Windows Management Instrumentation.
- Right-click it, then click Properties.
- Set the Startup type to Automatic.
- Click Start if the service isn’t running.
- Click OK to apply.
Configure Windows Firewall to Allow WMI
- Open Control Panel > System and Security > Windows Defender Firewall.
- On the left, click Allow an app or feature through Windows Defender Firewall.
- Click Change settings, then Allow another app....
- Add Windows Management Instrumentation (WMI) if it's not listed.
- Make sure it's allowed for Domain or Private.
- Go to Advanced Settings (left sidebar).
- In Inbound Rules, enable (if it is not):
- Windows Management Instrumentation (Async-In)
- Windows Management Instrumentation (Dcom-In)
-
Windows Management Instrumentation (WMI-In)
- In each of these, click Scope
- Under Local IP Address, click Add
- Add either the IP address of your collector or the subnet of your collector
Create or Modify a User for WMI Access
- Open Control Panel > Administrative Tools > Computer Management.
- Go to Local Users and Groups > Users.
- Right-click the user you’ll use for monitoring, click Properties.
- Go to the Member Of tab:
- Click Add.
- Type Administrators (or a custom group that has WMI rights).
- Click OK.
Grant WMI Permissions to the User
- Open Start > Run, type wmimgmt.msc, press Enter.
- In WMI Control, right-click WMI Control (Local) > Properties.
- Go to the Security tab.
- Expand Root, select CIMV2.
- Click Security.
- Click Add, enter the monitoring user, and click OK.
- Grant the user:
- Enable Account
- Remote Enable
- (Optionally, Execute Methods and Read Security)
Click OK and apply changes.
Test WMI Access from the Monitoring System
From Auvik, configure it to use:
- The IP or hostname of the device
- The username/password of the user you just configured
If the device is reachable and configured properly, it should respond to WMI queries.
Notes
- WMI monitoring relies on ports 135 (RPC) and dynamically assigned ports (by DCOM). Ensure these are not blocked.
- For environments with many devices, use Group Policy for bulk configuration.
