Fix STATUS_NO_TOKEN (0XC000007C) Token Reference Error
This error means Windows can't find a security token for a process or thread. Usually caused by a corrupted user profile or a broken Windows update.
This error is infuriating, I know.
You're working, or trying to install something, and bam — STATUS_NO_TOKEN (0XC000007C) pops up. The system's telling you it can't find a security token that should exist. That token is basically an ID badge for a process or thread. When it's missing, Windows panics and throws this error. I've seen this hit after a Windows update that went sideways, or when a user profile gets corrupted. Let's get it sorted.
The real fix: Rebuild your user profile
In my experience, the most common cause is a corrupted user profile. Not the files — the registry side of it. Windows stores your profile's security token in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. When that entry gets hosed, you get 0XC000007C. Here's how to fix it:
- Press Win + R, type
regedit, hit Enter. (Back up your registry first: File > Export.) - Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. - Look for folders with long names like
S-1-5-21-.... Each is a user profile. Click each one and check theProfileImagePathvalue — it shows the user folder path (e.g.,C:\Users\YourName). - Find the profile that matches the account giving you the error. If you see two entries for the same user (one ends with
.bak), that's the culprit. The.bakversion is a backup that Windows created when the original got corrupted. - Rename the
.bakentry by removing the.bakextension. Then delete the non-bak entry for that user (the one without.bak). - Restart your PC and log in. Windows will rebuild the token from the restored profile entry.
I've used this fix on Windows 10 21H2 and Windows 11 22H2. It works because you're essentially telling Windows to use the backup profile data — which is usually clean — instead of the corrupted active one. The token gets regenerated from that clean registry data.
Doesn't work? Try this variation
Sometimes the profile list looks normal — no .bak versions, no duplicates. In that case, the corruption might be in the profile itself. You can create a new user account and migrate your data. Here's the quick version:
- Go to Settings > Accounts > Family & other users. Add a new user with admin rights.
- Log into the new account. Copy files from
C:\Users\[OldName](Documents, Desktop, Downloads, etc.) to the new user's folders. Don't copy the entire profile — just the data. - Once done, delete the old account via Settings > Accounts > Family & other users.
This bypasses the corrupted token entirely. I've seen this fix 0XC000007C in cases where registry editing didn't help — usually when the corruption spread beyond just the token entry.
Less common causes and fixes
This error can also pop up from a broken Windows update. I've seen it after a failed cumulative update for .NET Framework or a security patch. If you suspect an update:
- Open Command Prompt as admin. Run
DISM /Online /Cleanup-Image /RestoreHealth. This fixes the component store. Then runsfc /scannowto repair system files. Reboot. - Still broken? Uninstall the most recent update: go to Settings > Update & Security > Windows Update > View update history > Uninstall updates. Pick the latest one, uninstall, and reboot.
Another rare trigger: a third-party security tool (antivirus or firewall) that hooks into the Windows token system. I've seen Webroot and certain versions of McAfee cause this. Temporarily disable or uninstall the tool, reboot, and see if the error disappears. If it does, you've found the conflict. Switch to a different security product or check for an update.
Also, check for driver conflicts — especially graphics drivers or storage drivers. Use verifier.exe (Driver Verifier) to check for bad drivers, but only if you're comfortable with advanced debugging — it can blue screen your system if it finds issues.
Prevention — stop it coming back
Once you've fixed 0XC000007C, here's how to keep it from returning:
- Always install Windows updates from a clean boot. Disable third-party antivirus temporarily before you run updates. I've seen McAfee and Malwarebytes interfere with the token update process.
- Run DISM and SFC monthly. Every first of the month, open Command Prompt as admin and run
DISM /Online /Cleanup-Image /CheckHealththensfc /scannow. Keeps the system file clean. - Don't delete registry profile entries manually unless you know what you're doing. If you mess up the ProfileList, you can lock yourself out of your account. Use the rename method above, not deletion.
- Back up your registry before any major system change. It takes 30 seconds and can save hours.
That's it. You're back in business. If you're still seeing 0XC000007C after all this, you might have deeper hardware or disk corruption — run chkdsk /f /r from Command Prompt as admin to check the drive. But 90% of the time, it's the profile registry fix or a bad update. You've got this.
Was this solution helpful?