Fix ERROR_WMI_SERVER_UNAVAILABLE (0x00001070)
This error means Windows Management Instrumentation (WMI) can't start. We'll walk through three fixes, from a quick service restart to a full repository rebuild.
What triggers this error
This error pops up when management tools (like Server Manager, Configuration Manager, or PowerShell scripts using Get-WmiObject) can't connect to WMI. You'll usually see it after a Windows Update, a failed service stop, or disk-full condition on the system drive.
The real fix depends on why WMI went down. Let's work through it from easiest to hardest.
First fix: Restart the WMI service (30 seconds)
- Open Command Prompt or PowerShell as Administrator.
- Type
net stop winmgmtand press Enter. Wait—it might take 10 seconds. You should seeThe Windows Management Instrumentation service was stopped successfully.
- Then type
net start winmgmt. You should seeThe Windows Management Instrumentation service started successfully.
- Now test your management tool again. If the error is gone, you're done. If not, move to the next fix.
Why this works sometimes: A temporary glitch or stuck process can freeze WMI. Restarting the service clears that state.
Second fix: Check WMI dependencies and re-register providers (5 minutes)
If the service starts but errors come back, dependencies are likely missing or a provider is corrupt.
Step 1: Verify dependencies
- Run
services.msc. - Find Windows Management Instrumentation, right-click, choose Properties.
- Check the Dependencies tab. It lists services that must be running: RPC Endpoint Mapper and Remote Procedure Call (RPC). Both should be
Running
. - If either is stopped, start it and set it to Automatic.
Step 2: Re-register core WMI components
- Open an elevated Command Prompt.
- Run these commands one at a time:
regsvr32 /s wmi.dll
regsvr32 /s wbemprox.dll
regsvr32 /s wbemcomn.dll
regsvr32 /s wbemsvc.dll - You shouldn't see any errors. Each should return
DllRegisterServer succeeded
silently. - Restart the winmgmt service:
net stop winmgmtthennet start winmgmt.
Step 3: Reset the WMI repository without losing data
This re-reads all MOF files and providers. It's safe and often fixes partial corruption.
- As Administrator, run
winmgmt /resetrepository. - Wait for the message:
WMI repository is consistent. No action taken.
orRepository successfully reset.
- Restart the service again:
net stop winmgmtthennet start winmgmt.
Test your tool. Still broken? The repository itself is probably corrupt—time for the heavy fix.
Third fix: Rebuild the WMI repository from scratch (15+ minutes)
This wipes the repository and recompiles it from MOF files. Run this only if the first two fixes failed—it resets custom WMI namespaces and can break third-party tools that store data in WMI (like antivirus or backup software). Back up the repository first if possible.
Step 1: Stop WMI and disable it temporarily
- Open Command Prompt as Administrator.
- Run:
Thenet stop winmgmt /y/yflag stops dependent services. You might see a warning—that's fine. - Rename the repository folder to preserve it:
rename %windir%\System32\wbem\Repository Repository.old
Step 2: Recompile the repository
- Change to the wbem folder:
cd /d %windir%\System32\wbem - Re-register all DLLs and recompile MOF files with this one-liner:
Important: This takes 2–5 minutes. Let it finish—don't close the window.for /f %i in ('dir /b /s *.dll') do regsvr32 /s %i - Then compile the core MOF files:
You should seemofcomp.exe cimwin32.mof
mofcomp.exe cimwin32.mfl
mofcomp.exe rsop.mof
mofcomp.exe wmi.mofMOF file has been successfully parsed
for each.
Step 3: Verify the repository is clean
- Start the WMI service:
net start winmgmt - Check the Event Viewer under Applications and Services Logs > Microsoft > Windows > WMI-Activity > Operational for Event ID 10 or 11—those indicate a problem. If none appear, you're good.
- Run a quick test:
Click Connect, leave the namespace aswbemtestroot\default, and click Connect. If it connects without error, WMI is working.
Still not working? Check if the Windows Management Instrumentation service is set to Automatic and not Disabled by group policy. Also verify that the WMI Performance Adapter service is running. On Server 2019, I've seen a missing hotfix cause this—check your Update history for KB5009624 or later.
When to call it quits and restore
If you rebuilt the repository and still see the error, the system files themselves might be corrupt. Run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth before giving up. Only restore from backup if you're sure the corruption isn't caused by a faulty driver or third-party tool that keeps re-corrupting the repo.
Was this solution helpful?