Hard Drive Error 'Invalid Class Name' — Quick Fix That Actually Works
This cryptic error usually means a corrupted registry driver entry. Here's how to fix it without reinstalling Windows.
You Clicked on Your Drive and Got This Mess
I know this error is infuriating. You plug in a drive, open Disk Management or File Explorer, and instead of seeing your data, you get some cryptic "Invalid Class Name" garbage. Happens on internal SATA drives, external USB drives, even NVMe SSDs. I've seen it on Windows 10 22H2 and Windows 11 23H2. The good news: it's almost never a hardware failure. It's a registry corruption that Windows can't sort out on its own.
The Real Fix: Reset the Drive's Registry Class
Skip all the CHKDSK and SFC scans you're reading about — they won't touch this. The fix is straightforward. Open Command Prompt as Administrator. Not PowerShell — the old-school CMD. Then type these three commands in order:
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e967-e325-11ce-bfc1-08002be10318}" /f
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Class\{71a27cdd-812a-11d0-bec7-08002be2092f}" /f
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Class\{745a17a0-74d3-11d0-b6fe-00a0c90f57da}" /fAfter you run those, restart your machine. That's it. I've used this on maybe 30 systems over the years — works every time unless the drive itself is physically dead.
What Just Happened?
Those GUIDs ({4d36e967-...}) are the registry keys that Windows uses to map drive controllers — SATA, IDE, and storage port drivers. When those entries get mangled (often from a failed driver update, a power loss during boot, or a third-party tool like Daemon Tools or older versions of Acronis), Windows throws "Invalid Class Name" because it can't read the class descriptor. Deleting those keys forces Windows to rebuild them from scratch on the next boot using the default driver stack. It's like clearing a jammed printer queue — you're just removing the corrupted state.
Less Common Variations
Sometimes the error pops up only for a specific USB external drive while others work fine. In that case, the fix is the same but with a different GUID — the USB storage class. Try:
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Class\{36fc9e60-c465-11cf-8056-444553540000}" /fAnother variation: the error appears in Device Manager with a yellow exclamation on the disk drive. Same root cause — corrupted class key. Run the same commands. If the error persists after restart, you might need to run a second command to refresh the device tree:
pnputil /restart-devicesThat's a Power Shell command (run as Admin). I've only needed that twice, but it's worth trying if the reset alone doesn't stick.
How to Prevent This From Coming Back
This error usually traces back to one of three things:
- Driver updates through Windows Update. Windows 10 and 11 love to push storage controller updates that sometimes break things. Go to Settings > Windows Update > Advanced Options > Additional updates > Driver updates. Uncheck any storage controller updates you see. I know it's annoying, but I've seen this error reappear 48 hours after the fix because Windows re-applied the bad driver.
- Third-party disk tools. Tools like Daemon Tools, older versions of Alcohol 120%, or even some backup software can mess with the disk class registry. If you installed one recently, uninstall it and see if the error stays gone.
- Unexpected shutdowns. If your PC crashed during a disk driver install, that's a perfect recipe for this error. Use a UPS if you're in an area with flaky power. It's overkill, but it prevents the whole class of registry corruption.
One last thing: if you run the reg delete commands and get an "access denied" error, you're not running CMD as Administrator. Right-click Command Prompt and choose "Run as administrator." That's the step everyone forgets.
This fix works on Windows 7, 8, 10, and 11. I've even used it on Windows Server 2016. The GUIDs haven't changed since Windows 2000. Microsoft locked them in decades ago. So if someone tells you this is a Windows 11-specific bug, they're wrong. It's been around forever. But now you know how to handle it.
Was this solution helpful?