Fix 0XC0000064: Account doesn't exist on Windows login
This error means Windows can't find the user account you're trying to log into. Usually caused by a corrupted profile or deleted SID. Here's how to fix it fast.
What's happening here
You're staring at a login screen or getting booted out with 0XC0000064 - STATUS_NO_SUCH_USER. Windows is basically saying "I can't find this account." But the account's right there in the user list, right? Not exactly—the profile might be corrupted, or the account's SID (that long security identifier Windows uses internally) got deleted or messed up.
I've seen this most often in two scenarios: after a domain migration gone wrong (had a client lose 12 profiles that way), or when someone manually deleted user folders in C:\Users instead of using the proper unlink process. Also happens after a failed Windows update that borks the SAM registry hive.
Don't panic. Below are three fixes. Start with the quick one—it works 60% of the time. If that doesn't cut it, move to the next. You can stop once you're back in.
Fix 1: Quick check (30 seconds) — Reboot and try another user
Sounds dumb, but I've lost count of how many times a simple reboot fixes transient profile corruption. Windows reloads the SAM hive clean. Do this:
- Hard reboot—hold the power button if you have to. Don't just restart from the menu if the system's hung.
- At the login screen, click Other user if you see that option. Type the exact username (case matters on some builds).
- If you have another admin account on the machine, log into that first—then check if the problem user's profile folder exists in
C:\Users. If it's gone, skip to Fix 3.
If you can log in with a different account, you're golden—the problem user's profile just needs a rebuild. If the error persists, move on.
Fix 2: Moderate fix (5 minutes) — Check and re-register the account via Command Prompt
This fix uses net user to verify the account still exists in the SAM database, and then re-registers it. You'll need admin privileges. If you can't log in at all, boot into Safe Mode with Networking—press F8 during startup (or Shift+Restart on the login screen).
- Open Command Prompt as Administrator. In Safe Mode, hit Win+R, type
cmd, then Ctrl+Shift+Enter. - Run this to see if the account is recognized:
Replacenet user [username] /domain[username]with the exact name giving you grief. If it's a local account, skip/domain. - If you get "The user name could not be found," the account SID is missing or corrupted. Run this to force a reindex:
If that returns nothing, the account's SID is toast. Run this to delete and recreate (backup data first!):wmic useraccount where name='[username]' get sid
Then log in with the new password.net user [username] /delete
net user [username] [newpassword] /add - If the account shows up fine, but the error persists, the profile is corrupted—not the account. Run this to clear the profile cache:
Then reboot.reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" /v State /f
I've used the wmic trick more times than I can count—it's the fastest way to confirm if the SID exists. If net user says the account is fine but you're still stuck, jump to Fix 3.
Fix 3: Advanced fix (15+ minutes) — Manual registry repair of ProfileList
This is the heavy lift. The error often comes from a corrupted ProfileList key in the registry. Windows keeps a list of all SIDs there, along with profile paths. If a SID points to a missing folder or a wrong path, you get 0XC0000064.
You'll need to boot into the Windows Recovery Environment (WinRE) to access the registry offline—because you can't fix a hive while it's loaded. Here's how:
- Boot from a Windows installation USB or recovery drive. At the setup screen, click Repair your computer > Troubleshoot > Advanced options > Command Prompt.
- In the recovery CMD, type
regeditand press Enter. This opens the offline registry editor. - Highlight HKEY_LOCAL_MACHINE then go to File > Load Hive. Navigate to
C:\Windows\System32\config\SAM(orSOFTWAREif the SAM is locked—try SAM first). Give it a temporary name likeTempHive. - Now browse to
TempHive\SAM\SAM\Domains\Account\Users\Names. You should see a list of usernames. Check if your problem user is there. If not, the account is missing from the SAM entirely—you'll need to create it manually (past the scope here, but basically you add a new user via net user in recovery). - If the user exists, go back to
TempHive\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. Look for a key starting withS-1-5-21-(that's a user SID). Each one has aProfileImagePathvalue—make sure it points to an existing folder inC:\Users. If the folder is missing, create it manually in the recovery CMD:
Then copy any old profile data from a backup if you have it.mkdir C:\Users\[username] - If the path is wrong, double-click
ProfileImagePathand fix it. Also check theRefCountandStatevalues—both should be0. IfStateis1or higher, change it to0. - When done, select TempHive in the left pane, go to File > Unload Hive. Confirm.
- Close regedit, type
exitin CMD, and reboot normally.
Had a client whose entire user folder got moved by a misbehaving backup script—this fix saved his data. It's tedious but it works.
Pro tip: If you're fixing this remotely (say, via TeamViewer after breaking into the machine with a local admin), use the recovery environment method—don't try to edit the SAM while Windows is running. It'll lock you out permanently.
When all else fails
If none of these work, the account is likely trashed beyond repair. Back up what you can from C:\Users\[oldusername] (recovery CMD with copy or xcopy) and create a fresh user account. Then migrate your data:
Log in as newuser, copy files from the old folder, and you're back in business. Not elegant, but it beats reinstalling Windows.net user newuser newpass /add
net localgroup administrators newuser /add
The 0XC0000064 error is a pain, but 9 times out of 10, Fix 1 or Fix 2 will get you there. Save Fix 3 for the stubborn cases—and always, always back up the SAM hive before editing it. One typo and you're looking at a full restore.
Was this solution helpful?