Invalid Class Name

Hard Drive Error: Invalid Class Name – Real Fixes That Work

Hardware – Hard Drives Intermediate 👁 1 views 📅 May 27, 2026

This error usually means a corrupted driver or registry key. Here's how to fix it fast, based on actual cases I've seen.

1. Corrupted or Missing Storage Driver (Most Common)

I see this error most often after a Windows update that botches the storage controller driver. Had a client last month whose Dell Optiplex 7060 wouldn't boot – every time Windows loaded, it threw "Invalid Class Name" in Device Manager under Storage Controllers. The fix wasn't a reinstall, just a driver refresh.

Here's what works:

  1. Open Device Manager (Win+X, then M).
  2. Expand Storage Controllers – look for a yellow triangle or the error message on the controller (usually "Standard NVM Express Controller" or "Intel SATA Controller").
  3. Right-click that controller and select Uninstall device. Check the box that says "Delete the driver software for this device" if you see it.
  4. Reboot. Windows will reinstall the generic driver.

If the generic driver works, you're done. If not, download the manufacturer's driver directly from your PC's support page (Dell, HP, Lenovo – don't trust Windows Update for this). Install that driver, reboot again. I've fixed this on at least a dozen machines with just that step.

2. Corrupted Registry Class Key

Sometimes the issue isn't the driver itself but the registry key that tells Windows which driver to load. A botched uninstall or a registry cleaner gone wrong can delete or corrupt the Class GUID entry for storage devices. The error shows up as a code 39 or "Invalid Class Name" in Device Manager.

Before you do anything in the registry, back it up. Open Regedit, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class, and export that whole branch. If you screw up, you can restore it.

The storage controller's Class GUID should be {4d36e96a-e325-11ce-bfc1-08002be10318}. If that key is missing or has empty values, you're in trouble. Here's the fix:

  1. In Regedit, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e96a-e325-11ce-bfc1-08002be10318}.
  2. If the key doesn't exist, create it: right-click Class, select New > Key, and name it {4d36e96a-e325-11ce-bfc1-08002be10318}.
  3. Inside that key, create a new string value called Class with data HDC (that's the class name for hard drive controllers).
  4. Also create a string value Class GUID with data {4d36e96a-e325-11ce-bfc1-08002be10318}.
  5. Close Regedit, reboot.

I've had a client whose IT guy had run a registry cleaner that nuked this key. Took me 10 minutes to rebuild it. Don't use registry cleaners – they cause more problems than they fix.

3. Faulty or Incompatible Drive Controller (Hardware Issue)

If the software fixes above don't work, you might have a hardware problem. I've seen this on older systems (Windows 7 era) when someone swapped a SATA SSD into a system that still used IDE mode in the BIOS, or on newer systems with a failing NVMe drive. The error shows up during boot or in Disk Management.

First, check your BIOS/UEFI settings:

  1. Reboot and enter BIOS (usually F2, F10, or Del).
  2. Look for SATA Operation or Storage Configuration. If it's set to RAID and you're using a single drive, switch to AHCI. If it's IDE, try AHCI.
  3. Save and exit. If Windows blue-screens after switching, you might need to enable Safe Mode first (boot from a recovery USB, run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth).

If that doesn't help, try a different SATA cable or port. Had a client whose cable was loose – reseated it, error gone. For NVMe drives, try a different M.2 slot if you have one.

Last resort: test the drive with the manufacturer's diagnostic tool (SeaTools for Seagate, WD Dashboard for Western Digital, Samsung Magician for Samsung). If the drive fails diagnostics, replace it.

Quick-Reference Summary Table

CauseFixTime
Corrupted storage driverUninstall device + driver in Device Manager, reboot, reinstall manufacturer driver10 min
Corrupted registry class keyRebuild {4d36e96a-e325-11ce-bfc1-08002be10318} key with Class = "HDC"15 min
Hardware fault/BIOS settingsCheck BIOS mode (AHCI vs RAID vs IDE), reseat cables, test with diagnostic tool30 min

Was this solution helpful?