Invalid Class Name

Fix 'Invalid Class Name' Hard Drive Error on Windows

This error pops up when Windows can't read a drive's class info from the registry. It's usually from a corrupted driver or a bad USB port.

Quick answer for advanced users

Open Device Manager, find the drive under Disk drives, right-click it, choose Uninstall device, then reboot. That reinstalls the driver and clears the bad class name. If that doesn't work, delete the corrupted ClassGUID key from HKLM\SYSTEM\CurrentControlSet\Control\Class\{4d36e967-e325-11ce-bfc1-08002be10318} in Regedit.

What you're dealing with

The 'Invalid Class Name' error shows up in Event Viewer or as a yellow exclamation mark in Device Manager. It means Windows tried to read the device's class GUID from the registry, but the value is missing, garbled, or points to a nonexistent class. This usually happens after a failed driver update, a registry cleaner gone rogue, or unplugging a USB drive without safely ejecting it. On USB 3.0 ports, I've seen it most often with generic adapters that don't follow the spec properly. The drive itself is probably fine—it's the software link that's broken.

Step-by-step fix

  1. Open Device Manager. Press Win + X and select Device Manager from the menu. You should see a window with a tree of hardware categories.
  2. Find the problematic drive. Expand Disk drives. Look for a device with a yellow exclamation mark or one that says 'Invalid Class Name' when you hover over it. If you don't see it there, check Universal Serial Bus controllers—it might be hiding under a 'Unknown USB Device' entry.
  3. Uninstall the device. Right-click the entry and choose Uninstall device. A warning pops up—click Uninstall. After you do this, the drive disappears from the list. Don't panic.
  4. Reboot your PC. Click Start, then the power icon, then Restart. This is critical—don't skip it. Windows will reinstall the driver on boot, and the class name gets rebuilt from the driver's INF file.
  5. Check the drive. After you log back in, open File Explorer. Your drive should show up under This PC. If it doesn't, go back to Device Manager—it should be listed without the exclamation mark now.

Alternative fixes if the main one fails

Clean the registry entry. This is riskier, so back up your registry first. Press Win + R, type regedit, and hit Enter. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e967-e325-11ce-bfc1-08002be10318}. In the left pane, you'll see subkeys named 0000, 0001, etc. Click each one and look at the ClassGUID string in the right pane. If it's empty or says something like 'Invalid Class Name', right-click that subkey and choose Delete. Confirm, then reboot. After reboot, Windows regenerates the key from the driver.

Try a different USB port. Swap to a USB 2.0 port if you're on USB 3.0. I've fixed this error twice just by plugging the drive into the back of the PC instead of the front. USB 3.0 ports sometimes handshake wrong with older drive enclosures.

Install chipset drivers. If the error keeps coming back, your motherboard's USB controller driver might be old. Go to your PC or motherboard manufacturer's support site, download the latest chipset driver, install it, and reboot. For example, on an Intel system, look for 'Intel Chipset Device Software'.

Use diskpart to clear the device. Open Command Prompt as Administrator. Type diskpart, then list disk. Find the problematic drive (be careful—don't pick your system drive). Type select disk X (replace X with the number). Then type clean. This wipes the partition table—only do this if you've backed up the data. After that, close diskpart, right-click Start, choose Disk Management, and initialize the drive as GPT or MBR.

How to prevent it from happening again

Always safely eject USB drives before unplugging them. Use the 'Safely Remove Hardware' icon in the system tray. Also, skip any third-party registry cleaners—they're the number one cause of corrupted class GUIDs in my 10 years as a help desk manager. Stick to Windows' built-in tools. If you need to update drivers, do it through Device Manager or the manufacturer's site, not some driver updater app.

Related Errors in Hardware – Hard Drives
0XC0000263 Fix 0XC0000263: Driver Entrypoint Not Found on Windows 0X80030012 STG_E_NOMOREFILES 0x80030012: Fixed It for You Invalid class name Fix Invalid Class Name Hard Drive Error in Windows 0XC00D11E6 Disc won't burn? Fix 0XC00D11E6 media incompatible error

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.