Windows errors show up at the worst times and rarely come with helpful information. "Something went wrong." "An error occurred." "0x80070005." Most people close the dialog and hope it doesn't come back. It always does. Here's a framework that actually works — four steps that handle the majority of Windows errors without guesswork or panic.
Why Windows errors feel impossible to fix
The error dialog itself is almost always generic. The actually useful information is in the code next to or below the message — that hexadecimal number or text identifier. Once you can read those codes, every error becomes googleable in a useful way. Without the code, you're stuck reading generic advice. With it, you're usually three minutes from the real fix.
So step one isn't "fix the error." It's "extract the code."
Step 1: Read the error properly
Don't dismiss the dialog yet. Look at it carefully and note:
- The exact wording of the headline.
- Any error code (typically
0xfollowed by 8 hex digits). - The name of the application or service that threw the error.
- What you were doing at the moment it appeared.
If the error code is hidden behind a "Details" or "More information" link, click that. Take a screenshot if there's any chance the dialog will close before you've copied everything. Half the time the screenshot saves you ten minutes of trying to reproduce the error later.
Step 2: Search the code, not the message
"Something went wrong with this update" has ten thousand possible causes. 0x80070005 has roughly three. Always search the code first.
A useful search structure:
"0x80070005" windows update fix
Quotes around the code force the engine to match it exactly. Adding the context (Windows Update, Outlook, install) narrows the results to your specific problem.
Trust Microsoft's official docs and answers.microsoft.com first. StackOverflow and SuperUser are good for developer-facing errors. Avoid sketchy "registry cleaner" sites — they're never actually the fix, and they often make things worse than the original problem.
Step 3: Run the standard repair commands
Most Windows errors fall into one of three buckets: corrupted system files, broken Windows Image, or broken Windows Update components. Three commands handle the lot. Open Command Prompt as Administrator and run them in order.
Repair system files (SFC)
sfc /scannow
SFC — System File Checker — scans every protected system file and replaces corrupted copies from a local cache. Takes 5–10 minutes. If SFC reports "Windows Resource Protection found corrupt files and successfully repaired them," reboot and try whatever was failing.
Repair the Windows image (DISM)
DISM /Online /Cleanup-Image /RestoreHealth
If SFC said it couldn't repair some files, DISM can usually fix the underlying image. It downloads replacement files from Windows Update. Takes 10–30 minutes depending on connection speed. After it finishes, run SFC again — it'll usually succeed now that the underlying source is repaired.
Reset Windows Update (if the error was update-related)
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
This clears the Windows Update cache and forces it to redownload metadata. Try the failed update again afterward.
Step 4: Narrow down the cause
If the error survives the repair commands, you need to figure out whether it's caused by Windows itself, a third-party program, or your hardware.
Clean boot
A clean boot starts Windows with only Microsoft services and no startup programs. If the error doesn't happen in a clean boot, a third-party program is causing it.
- Press Win + R, type
msconfig, press Enter. - Go to the Services tab.
- Tick Hide all Microsoft services (very important — without this you'd disable Windows itself).
- Click Disable all.
- Go to the Startup tab → Open Task Manager.
- Disable everything in the Startup list.
- Restart your PC.
If the error is gone, re-enable services in batches of five at a time, restart between each batch, test. Whichever batch reintroduces the error contains your culprit. Then you split that batch in half and test again. Binary search until you find the one bad service.
New user profile
If the error is specific to your account but works for another user on the same PC, your user profile has the problem. Create a new local user, sign in, confirm. If the new profile works, copy your files to it and use it from now on. Windows doesn't have a built-in profile repair tool — recreating is the standard fix.
Hardware check
If errors are random, blue screens are returning regularly, or applications crash without pattern, run a memory check:
- Press Win + R, type
mdsched.exe, press Enter. - Choose Restart now and check for problems.
Windows reboots into a memory diagnostic that takes about 15 minutes. After Windows boots again, check the result in Event Viewer under Windows Logs → System — look for a source called MemoryDiagnostics-Results.
Also worth running chkdsk /f on your system drive to check the disk itself for bad sectors and file-system issues.
Specific errors worth knowing
- 0x80070005 — Access denied. Usually a permission issue. Right-click the affected file/folder → Properties → Security and grant your user Full Control. For installation errors, run as administrator.
- 0x80070002 — File not found. Typically a Windows Update issue. The update component failed to download a file. Run the Windows Update troubleshooter (Settings → System → Troubleshoot → Other troubleshooters).
- 0xc000007b — Application failed to start. Almost always a missing or mismatched Visual C++ Redistributable. Reinstall the affected program; if that doesn't work, install the latest Visual C++ Redistributables (both x86 and x64).
- 0x8000ffff — Catastrophic failure. Despite the dramatic name, usually a Windows Update or Store issue. SFC + DISM + Store cache reset (
wsreset.exe) handles most cases. - BSOD CRITICAL_PROCESS_DIED. A required system process crashed. Boot to safe mode, run SFC and DISM. If repeating, suspect a driver or memory issue.
- BSOD WHEA_UNCORRECTABLE_ERROR. Hardware error reported to Windows. Update BIOS, run memory and disk checks, check CPU temperatures.
What not to do
- Don't run random "registry cleaner" apps. They aren't fixing anything and they can corrupt the registry in ways that turn small problems into reinstall-Windows-sized problems.
- Don't blindly delete files from System32, even if a forum post tells you to. That's how you brick a working PC.
- Don't reinstall Windows as a first response. It works but it's slow and you'll spend hours reinstalling apps. Try the structured approach above first.
- Don't ignore repeating errors. A pattern is information.
When to reinstall — and how
If nothing above works and the errors are still piling up, an in-place upgrade gets you a fresh Windows without losing your files or programs. It's a kind of "deep clean" that fixes problems no amount of targeted repair can touch.
- Go to microsoft.com/software-download/windows11.
- Download the Installation Assistant.
- Run it. Choose Keep personal files and apps.
It takes an hour or two. When it's done, you have a freshly reinstalled Windows with your data and apps intact. Most stubborn errors don't survive it.
The takeaway
Read the code, search the code, run SFC and DISM, clean boot if needed. That sequence handles nearly every Windows error you'll ever see — and it's faster than the alternative of reinstalling Windows each time. Bookmark this page. The next blue screen has already started forming somewhere in your future, and you'll be glad to have a plan.