0x00000004: What It Means and How to Fix It
In a BSOD context, 0x00000004 maps to INVALID_DATA_ACCESS_TRAP. If you saw the code in a crash screen or dump, start by capturing the crash details and checking whether the problem follows one user account or happens on the whole machine. Microsoft Learn identifies the bug check and notes that !analyze can help determine the root cause. (Microsoft Learn)
What 0x00000004 means in Windows
On the blue-screen side, 0x00000004 is the INVALID_DATA_ACCESS_TRAP bug check. Microsoft’s debugger documentation says the !analyze extension displays information about the bug check and can be helpful in determining the root cause. (Microsoft Learn)
Likely causes, ranked
- Profile-specific startup behavior. If the crash happens only under one account, a startup item or other per-user setting may be involved.
- Startup or service conflict. An app or service that loads for the affected user can contribute to the crash on sign-in or shutdown.
- Driver or update path fault. A bad driver, recent update, or device software can surface the same stop code path.
- Documentation confusion. If the code appears in setup or registry text, verify the source before treating it as a crash issue.
Say your screen shows 0x00000004 in a crash dialog after a restart loop. That points to a Windows fault path, and Microsoft labels that bug check INVALID_DATA_ACCESS_TRAP. If you find the same value in setup or registry-related documentation, confirm the context before using it for troubleshooting.
How 0x00000004 differs from REGISTRY_ERROR
REGISTRY_ERROR is a different stop code, so it should not be treated as the same thing as 0x00000004. People may confuse the two because both can appear in registry-related troubleshooting, but Microsoft’s bug check page for 0x00000004 identifies it as INVALID_DATA_ACCESS_TRAP, not REGISTRY_ERROR. If you see REGISTRY_ERROR, treat that as a separate bug check and verify the exact stop code before you move forward.
Is it tied to one user profile?
If the crash happens only under one account, that is a useful isolation result. It can point to a profile-specific startup item, service, or other per-user setting, but that does not by itself prove a damaged user registry hive. The test is simple: compare the affected account with a second local account and see whether the same shutdown or restart path behaves differently.
- Create a second local account. Go to Settings > Accounts > Other users > Add account in Windows 11, then create a local user for testing. Keep it separate from the affected sign-in so you can compare behavior cleanly.
- Sign in and repeat the same shutdown. Use the same action that caused the restart loop before. If the second account stays stable through the same shutdown path, the fault is more likely per-user than machine-wide.
- Move data, not settings. If the second account is stable, copy documents and desktop files into the new profile and plan to rebuild the old one. Do not carry over settings that may be tied to the affected profile.
Are startup items or services causing it?
If a different account works, the next step is to isolate what starts with the affected profile. msconfig is the safe first tool for this job. Autoruns goes deeper and can show items that load only for the affected user, which matters when the crash is profile-bound.
- Open System Configuration. Press Win + R, type
msconfig, and open the Services tab. Check Hide all Microsoft services, then clear the remaining boxes. This trims the list to third-party services that can trigger a loop. - Disable startup items. Open Task Manager > Startup apps and disable nonessential entries for the affected account. Restart and try the same shutdown again so you can tell whether the change breaks the loop.
- Inspect per-user entries. Open Autoruns, switch to the affected user if needed, and review entries that load only for that profile. Re-enable items in small groups, then restart after each change to identify the one that brings the crash back.
A common first-timer mistake is turning off everything and then changing three settings at once. If the machine stops crashing after a clean boot, turn items back on a few at a time. The point is to find the exact service or app, not to leave the system in a vague disabled state.
Could a driver or update be triggering it?
Yes. If the profile check does not change the result, move to machine-wide causes. A bad driver, a recent device update, or a corrupted system component can still produce the same stop code path. For Windows 11, use built-in repair and driver controls before any registry edits.
- Run Windows Update. Go to Settings > Windows Update > Check for updates, then install all pending updates and restart the PC. This covers operating system fixes and driver delivery through Windows Update.
- Repair system files. Open an elevated Command Prompt and run
sfc /scannow, thenDISM /Online /Cleanup-Image /RestoreHealth. If system files are damaged, these commands can repair them without reinstalling Windows. - Roll back a bad driver. Open Device Manager, right-click the suspect device, and choose Properties > Driver > Roll Back Driver or Uninstall device if rollback is unavailable. Reboot and repeat the same shutdown path.
0x00000004 triage matrix
This table separates the four cases readers most often confuse: profile isolation, startup or service conflict, driver instability, and dump analysis. Use the quickest test first. Then move to the next action that matches the result.

| symptom | likely cause | quickest test | next action |
|---|---|---|---|
| Crash happens only in one account, often during shutdown or restart loops | Profile-specific startup behavior or a per-user setting | Sign in to a second local user profile and repeat the same shutdown path | Use Autoruns for the affected user, then rebuild the profile if the second account stays stable |
| Crash appears after sign-in or when a specific app opens | Startup or service conflict | Run a clean boot with msconfig and disable non-Microsoft services | Re-enable startup items in small groups and restart after each change |
| Crash started after a driver, update, or device change | Driver instability | Check Device Manager for rollback or uninstall options on the newest driver | Install Windows updates, then retry the same shutdown or restart sequence |
| Crash details point to a dump file or debugger output | Driver or kernel-level fault is more likely than a user-profile issue | Open the dump and run !analyze in the debugger | Use the analysis to decide whether to focus on the driver path, a system component, or another machine-wide cause |
If you have a dump file, open it in the debugger and run !analyze. Microsoft says that extension displays bug check information and can help determine the root cause.
Still not working?
If the crash still returns after profile isolation, startup pruning, driver checks, and system repair, move up the escalation ladder. At that point, capture a dump and run !analyze in the Windows debugger, or use a vendor support path if a specific device keeps triggering the loop. Back up before changing system settings.
- Capture the failure details. If you can get a memory dump, open it in the debugger and run
!analyze. Microsoft says that extension displays bug check information and can help determine root cause. - Test memory next. Run Windows Memory Diagnostic or memtest86 if the shutdown loop continues after software isolation. Memory faults can mimic driver or system symptoms.
- Use a repair utility last. Cleanup utilities are not first-line diagnostics. Use them only after you have separated profile, startup, and driver causes, and only with a backup in place.
Keep a second admin account available for comparison, and make one change at a time when a shutdown loop returns. That gives you a clean before-and-after test instead of a pile of variables.
Frequently asked questions
What does 0x00000004 mean on Windows?
In a blue-screen context, it is the INVALID_DATA_ACCESS_TRAP bug check. The fastest way to troubleshoot it is to confirm whether the issue follows one user account, a startup item, a driver, or a system file problem.
How do I fix 0x00000004 error in Windows 11?
Start with a second user profile, then clean boot the affected account with msconfig. If the crash persists, run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth, then check Device Manager for driver rollback or uninstall options. That sequence keeps the changes reversible.
Is 0x00000004 a registry error?
No. Treat it as a bug check issue when it appears on a blue screen or in a crash dump. If the same value appears in some other context, verify that context before using it for troubleshooting.
Can a corrupted user profile cause 0x00000004?
A profile-specific issue can be part of the troubleshooting picture if the problem appears only in one account, but that is not the same as proving a corrupted profile. Create a second local profile, repeat the same shutdown action, and if the second profile stays stable, move the data into a new account rather than repairing the old one in place.
Should I disable startup programs when 0x00000004 keeps happening?
Yes. Use msconfig first, then Task Manager’s Startup apps tab, and only after that open Autoruns for deeper per-user entries. Re-enable items in small groups so you can see which service or app brings the crash back.
How do I repair registry-related BSODs without reinstalling Windows?
Use a staged approach: test another profile, isolate startup items, update Windows, repair system files with sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth, and only then consider a cleanup utility. If the loop still returns, capture a dump and run !analyze before moving to more invasive recovery.






