This article helps you troubleshoot the unlock of the OS Monitoring feature for Microsoft Windows, the feature behind the device’s System tab. It covers the original checks (how the enablement script is run, WinRM and WMI permissions). It also covers two problems that the standard checks don’t reveal:
- The unlock never completes because the server refuses NTLM authentication by policy. The account and password are correct, and a PowerShell test by hostname still works.
- The device unlocks, but logical and physical disk information stays empty because of a WMI “Provider failure”.
How Domotz connects to Windows
Understanding the connection path explains most unlock failures, so it’s worth reading this section first. This section describes the OS Monitoring unlock (the device’s System tab).
- The Collector connects to the device over WinRM over HTTP, port 5985, using the device’s IP address.
- The login method depends on the format of the username you enter when unlocking:
DOMAIN\usernameorCOMPUTERNAME\username(with a backslash) → NTLM. This is the recommended setup.- Any username without a backslash → Basic authentication. This includes a plain
usernameand theuser@domain(UPN) format.
- For the OS Monitoring unlock, Domotz does not use Kerberos or CredSSP.
- Once logged in, Domotz runs read-only PowerShell and WMI/CIM queries: OS, CPU, memory, disks and so on.
Run the enablement script correctly
1) Download the latest version of the WinRM enablement script: https://github.com/domotz/support_scripts/raw/main/os_monitoring/enable_winrm_os_monitoring.zip
2) Do not use PowerShell ISE. Run the script from a standard PowerShell console opened as Administrator.
3) Run the script for the type of account you’ll use to unlock the device: for local users, go to 3a; for domain users, go to 3b.
3a) Run the script for local Windows users: https://help.domotz.com/monitoring-management/os-monitoring-feature/#htoc-run-the-script-for-local-users
If you’re not sure of the computer name, open a Command Prompt and run hostname:

Find your computer's hostname using Command Prompt.
1. Open Command Prompt on your Windows computer.
2. Type the command `hostname` and press Enter.
3. The computer's hostname will be displayed. In this example, it is "DESKTOP-04".
3b) Run the script for domain users: https://help.domotz.com/monitoring-management/os-monitoring-feature/#htoc-run-the-script-for-domain-users
Enter the username as DOMAIN\username, for example contoso\Domotz.
Check the WinRM and WMI permissions
4) Make sure the account you use to unlock the device is a member of the group you granted permissions to. This is the group name you passed as a parameter when you ran the script.
5) Check that the group has both the WinRM and the WMI permissions.
WinRM permissions
From an Administrator PowerShell, run winrm configsddl default. In the window that opens, check that the group (by default DomotzWinRM, or the group name you used) has Read and Execute allowed:

Configuring WinRM Permissions in PowerShell
1. Open PowerShell as an administrator and enter the command: `winrm configsdll default`.
2. In the "Permissions for Default" window, select the relevant user or group under "Group or user names."
3. Ensure the following permissions are checked for "Allow":
- Read (Get, Enumerate, Subscribe)
- Write (Put, Delete, Create)
- Execute (Invoke)
4. Click "OK" to apply the changes.
WMI permissions
From an Administrator PowerShell, run compmgmt.msc. Expand Services and Applications, right-click WMI Control and select Properties. On the Security tab, expand Root, select CIMV2 and click Security. The group needs Execute Methods, Enable Account and Remote Enable:

Accessing WMI Control Security Settings via PowerShell
1. Open PowerShell and type `compmgmt.msc` to launch Computer Management.
2. In the Computer Management window, navigate to "Services and Applications" in the left panel.
3. Find and right-click on "WMI Control," then select "Properties."
4. In the "WMI Control Properties" window, go to the "Security" tab.
5. Expand the "Root" folder, then "CIMV2" under it.
6. Select "CIMV2."
7. Click the "Security" button to configure security settings.
8. In the security window, ensure the "Group or user names" section is correct, and verify that permissions such as "Execute Methods" and "Remote Enable" are checked under the "Allow" column for the appropriate users.
Test the login the way Domotz does
The most reliable test is to repeat what the Collector does: connect by IP address, over HTTP port 5985, with the same account. Windows’ built-in winrs tool uses the same WinRM path as Domotz.
Step 1. Allow the test machine to connect by IP. When the test machine connects by IP address, Windows refuses the connection unless the device is listed in the client’s TrustedHosts. In PowerShell as Administrator on the test machine, note the current value first so you can restore it, then add the device’s IP address:
Get-Item WSMan:\localhost\Client\TrustedHosts
Set-Item WSMan:\localhost\Client\TrustedHosts -Value 192.0.2.10 -Force
If PowerShell reports that the WinRM service isn’t running on this machine, run Start-Service WinRM first. Without this step, winrs fails with “the destination machine must be added to the TrustedHosts configuration setting”. Setting TrustedHosts is only needed for this manual test. The Domotz Collector doesn’t need it.
Step 2. Run the test in Command Prompt (cmd.exe). This confirms that login works and shows the account being used. Replace the IP address and the username with your own. You’ll be asked for the password.
winrs -r:http://192.0.2.10:5985 -u:DOMAIN\Domotz whoami
- It returns
domain\domotz: login works. If the unlock still doesn’t complete, check the credentials saved in Domotz for typos and for theDOMAIN\prefix. - “Access is denied”: this has more than one cause. Check the event logs at the time of the test and continue with “Match the error to its cause” below.
- An error naming “the authentication mechanism”: continue with “Match the error to its cause” below.
- Time-out or “cannot connect”: check the firewall, the WinRM HTTP listener (
winrm enumerate winrm/config/listener) and port 5985 between the Collector and the device. - “Winrs error: The handle is invalid.” printed after the command’s output: this is harmless when
winrsruns non-interactively. Ignore it.
Step 3. Restore TrustedHosts when you’ve finished testing. In PowerShell as Administrator, set it back to the value you noted in step 1, or clear it if it was empty:
Set-Item WSMan:\localhost\Client\TrustedHosts -Value '' -Force
Match the error to its cause
| What you see | What it means | Where to look |
|---|---|---|
The unlock stays pending and never completes, with no error shown in the portal. winrs returns “Access is denied”. NTLM event 4002 is logged and no 4625. | The device refuses the NTLM login. Usually incoming NTLM is blocked by policy. | “Incoming NTLM blocked by policy” below. |
winrs returns “Access is denied” on whoami itself, and a Security event 4624 (successful logon) is logged at the same time. | The login succeeded, but the account’s group isn’t in the WinRM permissions. | “Check the WinRM and WMI permissions” (winrm configsddl default). |
| Unlock doesn’t complete and a Security event 4625 appears on the device at the same time. | NTLM reached the server, but the account or password was rejected. Causes include a wrong password, a locked or disabled account, a missing DOMAIN\ prefix, or logon-hours or workstation restrictions. | Read the Failure Reason, Status and Sub Status fields of the 4625 event. |
| Unlock doesn’t complete but no 4624, 4625 or NTLM 4002 is logged. | The request may never reach the server’s login stage: firewall, listener, port 5985 or a proxy in between. | Run the winrs test above and check the listener and port. |
whoami works, but WMI queries return “Access denied”. | WMI permissions are missing for the account’s group. | “Check the WinRM and WMI permissions” (WMI Control). |
| Unlocked, but disks are empty (other OS data is fine). | The WMI disk provider is failing. | “Unlocked, but disk information is empty” below. |
Incoming NTLM blocked by policy
Typical symptoms:
- The unlock stays pending and never completes on one or a few servers, while other servers with the same account unlock fine. The portal shows no error message.
- The password is known to be correct, and a hostname-based PowerShell test works.
- The
winrstest above returns “Access is denied”. - No 4625 event is logged.
Confirm it (on the affected server, PowerShell as Administrator)
Check the policy value. 2 means “Deny all” incoming NTLM. 0 means “Allow all”.
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0 | Select RestrictReceivingNTLMTraffic
Look for blocked NTLM attempts at the time of the unlock or the test:
Get-WinEvent -LogName "Microsoft-Windows-NTLM/Operational" -MaxEvents 20 | Where-Object Id -eq 4002 | Format-List TimeCreated, Message
Event 4002, “Incoming NTLM traffic to servers that is blocked”, logged at the time of the unlock attempt or the test confirms the cause. The event doesn’t name the Domotz account: it shows the WinRM service process (svchost.exe) and the machine account (COMPUTERNAME$), so match it by time. Optionally, check that WinRM itself allows Negotiate (NTLM). It should show Negotiate = true:
winrm get winrm/config/service/auth
Fix it
1) On the affected server, find which Group Policy sets the restriction. Open Command Prompt as Administrator and run the command below. Open the report and search for “Restrict NTLM: Incoming NTLM traffic”. The Winning GPO column names the policy.
mkdir C:\Temp & gpresult /h C:\Temp\gpresult.html
2) Ask your Group Policy or security team to set Computer Configuration → Windows Settings → Security Settings → Local Policies → Security Options → Network security: Restrict NTLM: Incoming NTLM traffic to Allow all for this server. Alternatively, they can exclude the server from that GPO. If no GPO sets it, change it in the server’s Local Security Policy (secpol.msc).
3) On the affected server, in PowerShell as Administrator, apply the policy and check the value. It should now be 0:
gpupdate /force
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0 | Select RestrictReceivingNTLMTraffic
4) Repeat the winrs test, then unlock the device in Domotz.
Unlocked, but disk information is empty
Symptoms: the device unlocks and OS, CPU and memory data appear, but the Logical Disks and Physical Disks sections stay empty. Domotz’s disk query suppresses errors so that one failing section doesn’t stop the others, so the real error isn’t visible in the portal.
Show the hidden error
From Command Prompt on the same Windows test machine as above (with TrustedHosts set as in step 1), run the disk queries as the Domotz account with errors shown. Replace the IP address and the username with your own:
winrs -r:http://192.0.2.10:5985 -u:DOMAIN\Domotz powershell.exe "whoami; 'Mode: ' + $ExecutionContext.SessionState.LanguageMode; try { Get-WmiObject Win32_LogicalDisk -ErrorAction Stop | Select DeviceID,Size | Out-String } catch { 'WMI LOGICAL ERROR: ' + $_ }; try { Get-WmiObject Win32_DiskDrive -ErrorAction Stop | Select Model,Size | Out-String } catch { 'WMI PHYSICAL ERROR: ' + $_ }; try { Get-CimInstance Win32_LogicalDisk -ErrorAction Stop | Select DeviceID,Size | Out-String } catch { 'CIM ERROR: ' + $_ }"
| Result | Meaning and action |
|---|---|
| Disks are listed | WMI is healthy now. Domotz picks up the disks at its next disk collection, within about 4 hours. |
| “Provider failure” (WBEM 0x80041004) on the disk queries | This is not a permissions problem. The WMI provider that answers disk queries is stuck or failing. Restart the WMI service on the affected server, or reboot it in a maintenance window. Then run the test again. |
| “Access denied” | Check the WMI permissions on Root\CIMV2 (see “Check the WinRM and WMI permissions”). |
Mode: ConstrainedLanguage | AppLocker or WDAC restricts PowerShell for this account. Some Domotz queries may not work, so review the policy for the Domotz account. |
To restart WMI, run this on the affected server in PowerShell as Administrator. Dependent services restart automatically:
Restart-Service Winmgmt -Force
If the error comes back, check the WMI repository. Only salvage it if verification reports it as inconsistent:
winmgmt /verifyrepository
winmgmt /salvagerepository
Other troubleshooting
6) Individual PowerShell cmdlets inside the enablement script can fail. The errors are usually in the script’s log file. Run the failing cmdlets in the same context as the user who ran the script. If that user is SYSTEM, you can use PsExec64.exe. The WMI repository may be broken, or default security may have been changed by a GPO or another hardening tool.
To check for and rebuild a broken repository, see WMI: Repository Corruption, or Not? and the section “Unlocked, but disk information is empty” above.
7) If none of the above helps, open a ticket at support@domotz.com. Please include:
- The logs collected from the affected system with this PowerShell script: https://raw.githubusercontent.com/domotz/support_scripts/main/os_monitoring/src/domotzLogCollector.ps1
- The output of the
winrstest, and which machine you ran it from. - The
RestrictReceivingNTLMTrafficvalue, and any NTLM 4002, Security 4624 or 4625 events from the time of the unlock attempt. - The device’s IP address and the exact username format used for the unlock, for example
DOMAIN\Domotz.