Windows Error Codes Guide – Complete Reference
Windows error codes range from minor application warnings to critical system failures that prevent booting entirely. Understanding what an error code means is the first step to resolving it quickly — without reinstalling Windows or replacing hardware unnecessarily. This guide explains the different types of Windows error codes, how to find and interpret them using built-in tools like Event Viewer and Reliability Monitor, and walks through the most effective repair steps available in Windows 10 and 11. Whether you're dealing with a cryptic 0x80070005 or a BSOD stop code, this reference will help you diagnose and fix the problem systematically.
Types of Windows Error Codes
BSOD Stop Codes
Fatal errors causing system restart. Format: CRITICAL_PROCESS_DIED, IRQL_NOT_LESS_OR_EQUAL
Hex Error Codes
Hexadecimal codes in dialogs. Format: 0x80070005, 0xc0000034
Event Viewer IDs
Numeric IDs in system logs. Format: Event ID 41, 7034, 6008
Windows Update Errors
Update failure codes. Format: 0x800f0922, 0x80240034
Most Common Causes of Windows Errors
- Corrupted Windows system files — caused by abrupt shutdowns, disk errors, or malware
- Incompatible or outdated device drivers — especially after Windows updates
- Faulty RAM — causes memory-related stop codes and application crashes
- Failing storage drive — bad sectors cause file read errors and boot failures
- Malware infection — corrupts system files and alters registry settings
- Failed or interrupted Windows Update — leaves OS in inconsistent state
- Software conflicts — two programs modifying the same system resource
- Registry corruption — missing or invalid entries for system components
How to Find and Fix Windows Errors – Step by Step
- Identify the error code sourceBSOD: note the stop code on the blue screen (e.g., CRITICAL_PROCESS_DIED). Application crash: read the error dialog message and note any hex codes. Boot failure: look for on-screen text. For all other errors, proceed to Event Viewer.
- Check Event Viewer for detailed logsPress
Win+X→ Event Viewer → Windows Logs → System. Set filter to Critical and Error. Note the timestamp, Event ID, Source, and description. The Event ID is your key diagnostic identifier — search it on errorsfixer.com for specific solutions. - Run System File Checker (sfc /scannow)Open CMD as Administrator. Run
sfc /scannow. Wait for the 100% completion scan. If it reports "Windows Resource Protection found corrupt files and repaired them" — restart and test. If it reports it cannot repair, proceed to DISM. - Run DISM to repair the Windows imageIn CMD as Administrator, run:
DISM /Online /Cleanup-Image /RestoreHealth. This downloads fresh Windows component files from Microsoft's servers. This requires internet. After completion, run sfc /scannow again and restart. - Check and repair storage driveRun
chkdsk C: /f /rin CMD as Administrator. When prompted to schedule on next restart, type Y. Restart — chkdsk will scan for and fix bad sectors before Windows loads. A drive with many bad sectors should be replaced. - Update Windows and all device driversGo to Settings → Windows Update → Check for updates. Install all available updates including optional ones. Update GPU, chipset, NVMe, and network drivers via Device Manager or manufacturer websites. Many Windows errors are fixed by driver updates.
- Use Startup Repair for boot errorsFor boot failures: insert Windows USB, select "Repair your computer" → Troubleshoot → Advanced Options → Startup Repair. Also try:
bootrec /fixmbr,bootrec /fixboot,bootrec /rebuildbcdin the Recovery Command Prompt. - Reset Windows as last resortIf all else fails: Settings → System → Recovery → Reset this PC. Choose "Keep my files" to preserve personal data while reinstalling Windows. This resolves virtually all software-level Windows errors.
Most Common Windows Error Codes
| Code / ID | Error Name | Severity |
|---|---|---|
0xc000021a | STATUS_SYSTEM_PROCESS_TERMINATED – Windows subsystem crash | Critical |
0x80070005 | Access Denied – permission error during update or install | High |
0x800f0922 | Windows Update failed – disk space or connectivity issue | High |
Event ID 41 | Kernel-Power – unexpected system shutdown/restart | High |
Event ID 6008 | Unexpected shutdown – previous shutdown was unexpected | Medium |
0xc0000034 | WINLOAD.EFI missing – boot file corrupted or deleted | Critical |
0x80240034 | WU_E_DOWNLOAD_FAILED – Windows Update download failed | Medium |
Event ID 7034 | Service terminated unexpectedly | Medium |
Frequently Asked Questions
What is the difference between a Windows error code and a stop code?
A Windows error code is any numeric code Windows displays when something fails — appearing in dialogs, Event Viewer, and app errors (e.g., 0x80070005). A stop code is specific to BSODs — fatal errors that force a restart (e.g., CRITICAL_PROCESS_DIED). Stop codes always have a corresponding hexadecimal bug check code.
How do I find error codes in Windows 10 and 11?
Three main sources: (1) Event Viewer (Win+X → Event Viewer → Windows Logs) — most comprehensive. (2) Reliability Monitor (search 'reliability' in Start) — visual timeline of crashes. (3) Memory Dump files — analyze with WhoCrashed after a BSOD to identify the faulty driver.
How do I fix Error 0x80070005 Access Denied?
Fix by: (1) running the operation as Administrator, (2) temporarily disabling antivirus, (3) running the Windows Update Troubleshooter in Settings → Troubleshoot, or (4) taking ownership of the affected folder via Properties → Security → Advanced → Change Owner.
What does Windows error 0xc000021a mean?
STATUS_SYSTEM_PROCESS_TERMINATED — a critical Windows subsystem (winlogon.exe or csrss.exe) was terminated. Fix: boot from a Windows USB → Startup Repair, then run
sfc /scannow and DISM /RestoreHealth in the recovery command prompt.