Medium
Operating Systems
✓ Solution Verified by Community (0+ upvotes)
How to fix error error-gen-failure in Windows 11
ERROR_GEN_FAILURE = 31
Fix based on community reports and expert analysis. Last verified: 2026-08-12
· How we verify fixes
| Error Code | error-gen-failure |
|---|---|
| Affected System | Windows 11 (Microsoft) |
| Difficulty | Medium |
| Estimated Time | 45 min |
| Requires Admin Rights | ⚠️ Yes |
| Requires Reboot | 🔄 Yes |
Solution Steps
- 1 Press Windows key + X and select 'Device Manager' from the menu. This opens a window listing all your hardware. Look for any device with a yellow exclamation mark — that's a sign of a problem. Right-click the problematic device (like your USB drive) and select 'Uninstall device'. Check the box that says 'Delete the driver software for this device' if it appears, then click Uninstall. Restart your PC. Windows will reinstall the driver automatically. This clears out any corrupted driver settings that might be causing the generic failure.
- 2 Press Windows key + R to open the Run dialog. Type 'cmd' and press Ctrl+Shift+Enter to run Command Prompt as administrator. Click Yes if prompted. In the Command Prompt window, type 'sfc /scannow' and press Enter. This command scans all protected system files and replaces corrupted ones with a cached copy. It's like a doctor checking your body for infections — it finds and repairs hidden damage. Wait for the scan to complete (it can take 15-20 minutes). If it finds issues, it will fix them automatically.
- 3 If SFC doesn't fix the problem, run the DISM tool. In the same Command Prompt window, type 'DISM /Online /Cleanup-Image /RestoreHealth' and press Enter. This command repairs the Windows system image itself, which is the foundation that SFC uses to fix files. Think of it as repairing the foundation of a house before fixing the walls. This can take 20-30 minutes, so be patient. After it finishes, restart your PC.
- 4 Check the drive for errors. Open File Explorer (Windows key + E), right-click on the affected drive (like your USB drive), and select 'Properties'. Go to the 'Tools' tab and click 'Check' under Error checking. If Windows asks for permission, click 'Scan and repair drive'. This scans the drive's file system for errors and fixes them. This is like running a diagnostic on your car's engine to find the exact problem.
- 5 If the error persists, try a different USB port or a different computer. If the drive works on another computer, the problem is with your PC's USB drivers. Update your chipset drivers from your motherboard manufacturer's website. If the drive doesn't work anywhere, the drive itself may be failing — consider replacing it.
🔍 Didn't work? Enter your GPU and CPU for hardware-specific advice:
🔧 Still having issues?
Describe your exact problem to Error Buddy and get a personalized fix in seconds.
🛠️ Try Error Buddy — It's Free