Error Description
This error occurs when the Windows Remote Management (WinRM / WS-Management) service attempts to interact with the Windows Management Instrumentation (WMI) service, but the underlying WMI provider fails to execute the requested operation. This usually happens due to corrupted WMI repositories, misconfigured WinRM settings, broken WMI provider registrations, or permission conflicts between the services. It commonly interrupts remote PowerShell sessions, server management tools, and automated deployment scripts.
Step-by-Step Fixes
Follow these steps in order to resolve the issue.
Step 1: Restart the WinRM and WMI Services
Sometimes the services enter a deadlocked or glitched state. Restarting them can quickly clear temporary communication errors.
- Press
Windows Key + Xand select Terminal (Admin) or Command Prompt (Admin). - Type the following command to stop the WinRM service and press
Enter:net stop winrm - Type the following command to stop the WMI service and press
Enter(Note: It may ask to stop other dependent services, typeYand pressEnterif prompted):net stop winmgmt - Start the WMI service again:
net start winmgmt - Start the WinRM service again:
net start winrm
Step 2: Re-register the WMI Components
If a specific WMI provider is failing, re-registering the WMI core dynamic link libraries (.dll) and compiled managed object format (.mof) files will repair the connections.
- Open Command Prompt (Admin).
- Navigate to the WMI directory by executing:
cd %windir%\system32\wbem - Re-register all WMI DLL files in the folder by running:
for /f %s in ('dir /b *.dll') do regsvr32 /s %s - Recompile the WMI repository MOF files by running:
for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s - Restart your computer to let the changes take effect.
Step 3: Run the WMI Self-Assessment and Repair
If the repository itself is structurally damaged, Windows can check its integrity and rebuild it.
- Open Command Prompt (Admin).
- Check the health of the WMI repository by running:
winmgmt /verifyrepository - If the output says "Repository is NOT consistent", run the repair command:
winmgmt /salvagerepository - If the salvage command fails, you can force a rebuild by running:
winmgmt /resetrepository - Restart the computer after running the reset command.
Step 4: Reset the WinRM Configuration
If WMI is healthy but the WS-Management service has broken listeners or endpoint configurations, resetting WinRM to its default state will resolve the conflict.
- Open Command Prompt (Admin).
- Reset the WinRM configuration by executing:
winrm quickconfig - Type
yand pressEnterto confirm any configuration changes, firewall exceptions, or listener creations prompted by the tool.
ERROR_WSMAN_WMI_MAX_NESTED | ERROR_WSMAN_REMOTE_CIMPATH_NOT_SUPPORTED | ERROR_WSMAN_WMI_INVALID_VALUE | ERROR_WSMAN_WMI_SVC_ACCESS_DENIED | ERROR_WSMAN_WMI_PROVIDER_ACCESS_DENIED
There may be some errors. Learn Microsoft