Monitoring Windows over native WMI
A Windows probe can read the Windows sensors over native WMI, which is COM on the probe's own machine and DCOM to another one, instead of WinRM. The sensors, their queries and their results are the same as over WinRM; only the way the queries travel differs. Choose it per device: Windows sensors connect by, Native WMI.
What Probeward does over native WMI:
- It only runs WQL
SELECTqueries inroot\cimv2, andWin32_PingStatusfor ping sensors on the probe's own machine. It never calls a method on the target or changes anything. - It connects to the device's address, never to its host name. A name would be resolved by Windows on the probe (DNS, LLMNR, NetBIOS), and the login would go wherever the name points instead of to the address the credential's allowed ranges were checked against. The host name plays no part in native WMI.
- To another machine it authenticates with NTLM, since the target is addressed by IP, and asks for packet privacy, so every DCOM packet is signed and encrypted. That is also above what the DCOM hardening in current Windows updates requires (packet integrity).
- Every poll ends at the sensor's timeout even when the target hangs; see timeouts.
The probe's own machine
Nothing to set up. Give the device the address 127.0.0.1 or one of the machine's own addresses; the device's host name does not make a target local. Local WMI does not take credentials: the queries run as the probe's service account (LocalSystem), which can read every class the sensors use, including the Security event log.
Another machine
1. A read-only account
As for WinRM, use a dedicated account that is not an administrator: a domain user and group in a domain (svc-probeward, Probeward Monitoring), or a local user on a stand-alone machine. It needs these rights on each monitored machine:
| Right | Why | How |
|---|---|---|
| Member of Distributed COM Users | Lets the account activate and call the WMI service over DCOM from another machine. Without it the connection fails with "access denied" (0x80070005) before any query. | Local group; by GPO with Restricted Groups or Group Policy Preferences, or Add-LocalGroupMember -Group "Distributed COM Users" -Member <account> |
Enable Account and Remote Enable on the WMI namespace root\cimv2 | Lets the account read WMI remotely. Without Remote Enable the connection fails with "access denied" (0x80041003 or 0x80070005). | wmimgmt.msc, right-click WMI Control, Properties, Security, Root\CIMV2, Security, add the account or group, tick both, Advanced, "This namespace and subnamespaces" |
| Member of Performance Monitor Users | The CPU, disk activity and network adapter sensors read performance counters. | Local group, as above |
| Member of Event Log Readers | The event log sensor reads the System and Application logs. | Local group, as above |
The account needs no membership of Remote Management Users: that group is for WinRM. As over WinRM, the Security log needs more than Event Log Readers, and a local administrator account is filtered by User Account Control when it logs in from the network, so a non-administrator with the rights above is the better choice.
The DCOM rights can also be given directly instead of through Distributed COM Users: dcomcnfg, Component Services, Computers, My Computer, Properties, COM Security, Access Permissions (Remote Access) and Launch and Activation Permissions (Remote Launch, Remote Activation). The group already has them on every supported Windows version, which is why the table uses it.
2. Firewall
DCOM uses TCP 135 to find the WMI service and then a port from the dynamic range (49152 to 65535). Enable the built-in rules of the group Windows Management Instrumentation (WMI) for the probe's address only:
Set-NetFirewallRule -DisplayGroup "Windows Management Instrumentation (WMI)" -Enabled True `
-RemoteAddress 192.0.2.20
A firewall between the probe and the target has to allow the dynamic range, or the WMI service has to be moved to a fixed port: winmgmt /standalonehost (then restart the Winmgmt service) makes it listen on TCP 24158, and that port and 135 are all that need to be open. A dropped port shows in Probeward as a timeout, "the RPC server is unavailable" (0x800706BA) as unreachable.
3. The credential in Probeward
Use a credential of kind Windows (WinRM), the same kind WinRM uses, set on the device, group or probe:
| Field | Meaning |
|---|---|
| User name | svc-probeward, CORP\svc-probeward or svc-probeward@corp.example.com. |
| Password | The account's password. |
| Domain | The NTLM domain, for example CORP. Empty for a local account on the target. |
| Authentication | Negotiate or NTLM. Either way the connection to another machine uses NTLM with packet privacy, because the WMI library sets that after connecting. Kerberos and Basic are refused for native WMI with a message saying so (on the same machine credentials are not used, so they do not matter there); keep them for WinRM devices. |
Or choose Service account as the authentication: no user name or password, and the probe connects as its own Windows account. For the default LocalSystem that is the machine account (CORP\PROBE01$), which can be given the rights above through a domain group, so that no password is stored at all. A machine account exists only in a domain; in a workgroup use a credential.
Discovery
Discovery scans from the core, whichever probe the job names; the probe decides where the new devices go. When the job's probe runs on Windows, the Windows hosts it adds (those it found with a Windows credential) are set to native WMI, so the probe polls them over DCOM instead of WinRM; under a Linux probe they stay on WinRM. The scan itself reaches them from the core over WinRM, so a host that only allows DCOM from the probe is not found as a Windows host. Change the transport in the device form at any time; the sensors keep working.
Troubleshooting
| Message (kind) | Cause and fix |
|---|---|
access denied (0x80070005) ... (auth_failed) | Wrong user name or password, or the account is not in Distributed COM Users, or lacks Remote Enable on root\cimv2. |
... insists on Kerberos ... or Basic is a WinRM login method ... (config) | Set the credential's authentication to Negotiate or NTLM, or use WinRM for the device. |
access denied (0x80041003) ... (auth_failed) | The account reached WMI but lacks Enable Account or Remote Enable on the namespace. |
the RPC server is unavailable (0x800706BA) ... (unreachable) | TCP 135 or the dynamic port is blocked, the machine is off, or the device's address is not the machine's. |
user credentials cannot be used for local connections (0x80041064) (config) | The device's address reaches the probe's own machine but is not one of its interface addresses (a NAT or forwarded address, for example). Use 127.0.0.1. |
the WMI class does not exist (0x80041010) ... (config) | The class is not on this Windows version. |
native WMI on <target> did not answer within N ms (timeout) | WMI or the network is slow or stuck. The call keeps its slot until Windows gives up on it. |
native WMI is only available on a Windows probe ... (config) | The device is under a Linux probe. Move it to a Windows probe or choose WinRM. |
Not yet verified
Native WMI against other Windows machines, with a device credential, has not been verified. What has been verified is the probe's own machine (local COM, which takes no credential and runs as the service account), on a Windows 11 machine. For another machine the product asks the library for a DCOM connection with the device's user name, password and domain, but it has not been shown that the queries then run as that account: the library may run them as the probe's service account instead, which would read the target with the wrong identity (and with whatever the service account is allowed to read there) while the device's credential appears to be in use. Until this is proven:
- WinRM is the recommended transport for remote Windows hosts. Choose WinRM in Windows sensors connect by for any machine other than the probe's own.
- If you use native WMI against another machine anyway, make sure the account that the probe's service runs as is one you are content to have read that machine, and do not rely on the device credential to limit what is read.
The device form shows the same notice where native WMI is chosen. The sections above describe what the setup is meant to do; read them with this in mind.
What has been tested
See the final section of Windows probes.