0X0000000C

Fix ERROR_INVALID_ACCESS (0x0000000C) on Windows 10/11

This Windows error means your app or process tried an action the system won't allow. We'll show you how to fix it with permission resets, SFC, and other tricks.

Quick Answer

For advanced users: Open an elevated command prompt, run sfc /scannow, then DISM /Online /Cleanup-Image /RestoreHealth. Reboot and see if the error stays gone.

Why This Happens

You're staring at an error that says "The access code is invalid" with code 0x0000000C. It's Windows' way of saying your program tried to do something it doesn't have permission for. Maybe it tried to write to a protected folder, read a registry key it shouldn't touch, or access hardware directly. This isn't a random crash — it's the system blocking an action.

I've seen this error pop up in a few specific scenarios. One that comes up a lot is when you open an older program that expects to run as administrator but doesn't trigger the UAC prompt. Another is when a file or registry key loses its proper ownership after a system update or a failed uninstall. And sometimes it's just Windows being overly cautious about a newly installed driver.

The good news? Most of the time, you don't need to reinstall Windows or dig into kernel debugging. A few targeted commands and permission tweaks usually sort it out.

Fix Steps

  1. Run System File Checker
    Open Command Prompt as administrator (search for "cmd", right-click, choose "Run as administrator"). Type sfc /scannow and press Enter. This checks core Windows files for corruption and replaces any bad ones. It can take a while — let it finish.
  2. Run DISM
    If SFC doesn't fix it or throws an error, run this in the same command prompt:
    DISM /Online /Cleanup-Image /RestoreHealth
    This repairs the system image itself. It's slower, so go grab a coffee.
  3. Check File and Folder Permissions
    If the error ties to a specific file or folder, right-click it, go to Properties → Security. Click Advanced. Make sure the current user has Full Control. If not, click Change next to Owner and set it to your account, then grant yourself full permissions.
  4. Reset Registry Permissions (if app-specific)
    Some apps store settings in registry keys that get locked down accidentally. Open Registry Editor (regedit) and find the app's key under HKEY_CURRENT_USER\Software or HKEY_LOCAL_MACHINE\Software. Right-click, Permissions, and ensure your account has Full Control. Be careful here — messing with registry permissions can cause more harm if you go too far.
  5. Run the Program as Administrator
    Right-click the executable, go to Properties → Compatibility, and check "Run this program as an administrator." Apply and try again. This nudges Windows to grant the higher privileges the app expects.

If That Doesn't Work

Sometimes the fix is simpler than you expect. Try these:

  • Restart in Safe Mode — Boot into Safe Mode and see if the error appears. If not, a background service or driver is interfering. A clean boot can pinpoint it.
  • Reinstall the application — Uninstall the program that triggers the error, then download a fresh copy. Corrupted installs happen more often than you'd think.
  • Check Windows updates — A pending update can leave file permissions in a weird state. Install all updates and reboot.
  • Run a malware scan — Some infections lock down files to prevent removal. A full scan with Windows Defender or Malwarebytes won't hurt.

Prevention Tips

To stop this from becoming a recurring annoyance, keep a few habits in mind. Always run installers from trusted sources — a legit app rarely triggers this error. Also, don't manually mess with file permissions unless you're sure what you're doing. If you're an IT admin, consider Group Policy tweaks to standardize user rights across machines.

And remember, when Windows says "access code invalid", it's not always about the code itself. It's about trust boundaries. Keep your system clean, don't disable UAC entirely, and you'll see this error a whole lot less.

Related Errors in Windows Errors
Fix Windows Error Redirect Loop or Script Error in Browser 0XC01A0025 STATUS_LOG_CLIENT_NOT_REGISTERED (0xC01A0025) Fix 0XC00D0FCF NS_E_SHARING_VIOLATION 0XC00D0FCF fix: File already in use 0X000007E1 ERROR_INVALID_COLORSPACE (0X000007E1) Fix

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.