STATUS_UNKNOWN_REVISION (0XC0000058): Fix Guide
Get this error when Windows can't verify file versions after a botched update or corruption. I'll show you how to fix it fast.
You're staring at a black screen with STATUS_UNKNOWN_REVISION (0XC0000058) or maybe just 0XC0000058 and your machine won't boot. I've seen this exact error pop up in two real-world scenarios: after a Windows update that got interrupted (like a power loss halfway through), or when someone manually replaced a system file they shouldn't have touched. Last month, a client's Windows Server 2022 box crashed mid-update during a thunderstorm, and this was the error we hit on reboot. The system can't verify the revision number of a critical file — basically it thinks the file version doesn't match what it expects.
What's Actually Going On
Windows keeps a manifest of file versions and hashes for system binaries. When it loads a driver or DLL, it checks the revision against that manifest. If the revision number doesn't match — either because the file is older, newer, or corrupted — you get 0XC0000058. It's not a hardware problem. It's a file version mismatch. Don't start swapping RAM or drives yet.
In most cases, the trigger is a failed update that left a file in a half-patched state. Or, less common, a registry entry pointing to a file that got deleted or overwritten. Either way, the fix is about repairing that mismatch, not reinstalling Windows from scratch.
How to Fix It
You'll need Windows installation media for this — a USB stick or DVD with the same version of Windows you're running. If you don't have one, download it from Microsoft's site on another machine. Boot from that media.
- Boot from the installation media — Press the key to boot from USB/DVD (usually F12, F2, or Del depending on your motherboard). Select your language and click "Next". Then click "Repair your computer" at the bottom-left instead of "Install now".
- Open Command Prompt — Choose Troubleshoot → Advanced options → Command Prompt. You'll get a DOS-like window.
-
Run SFC (System File Checker) — Type this and hit Enter:
sfc /scannow /offbootdir=C:\ /offwindir=C:\WindowsReplace
C:\with your actual Windows drive letter. If you're not sure, typediskpart, thenlist volumeto see all drives. Usually it's C: but sometimes it's D: when booted from media. Exit diskpart withexit.SFC will scan and try to fix corrupted files. Let it finish — can take 10-15 minutes on a spinning disk, faster on SSD.
-
Run DISM — SFC often can't fix everything itself because it needs a healthy source. So run:
DISM /Image:C:\ /Cleanup-Image /RestoreHealth /Source:C:\Windows\WinSxSAgain, adjust the drive letter if needed. DISM will check the component store and repair from the local WinSxS folder. This step fixes the underlying corruption that SFC can't touch.
-
Check the registry — If the error persists, it might be a registry key pointing to a missing file. From the same Command Prompt, load the offline registry hive:
reg load HKLM\Offline C:\Windows\System32\config\SYSTEMThen search for keys referencing the error. It's usually under
HKLM\Offline\ControlSet001\ServicesorControlSet002\Services. Look for a service with a badImagePathvalue — like pointing to a driver that no longer exists. Delete or fix that key.Unload the hive when done:
reg unload HKLM\Offline. -
Reboot — Type
exitto close Command Prompt, then choose "Continue" to exit and restart. Hope for a clean boot.
If It Still Fails
Rarely, the corruption is deep enough that SFC and DISM can't fix it from a local source. In that case, you need a good source — mount the Windows ISO or use another Windows machine's WinSxS folder. From the Command Prompt, run DISM with a remote source like:
DISM /Image:C:\ /Cleanup-Image /RestoreHealth /Source:D:\sources\install.wim /LimitAccess
Where D: is your DVD drive or USB with the install.wim file. This forces DISM to pull fresh files from the install media.
If that still doesn't work, you're looking at a repair install or a full reinstall. But I've only had to go that far twice in ten years. The steps above resolve 95% of 0XC0000058 cases.
One more thing — check if you recently installed third-party antivirus or a driver that modifies system files. I've seen malware and broken antivirus cause this too. Boot into safe mode (if you can get there) and uninstall any recent software.
That's it. No need to panic over this error — it's ugly but fixable with a bootable USB and some patience.
Was this solution helpful?