sodcalculator

10 Tech How-To

Fix Temporary Profile in Windows (Step-by-Step)

Guide 10-44303 · Updated · Step by step

When Windows loads a temporary profile, you lose your desktop, documents, settings, and installed app preferences every time you sign in. This guide shows you how to restore your normal user profile by editing the registry, so you get your files and settings back without reinstalling Windows.

What You’ll Need

  • Administrator access to the Windows PC (you’ll need to log in with an admin account).
  • The exact name of the affected user account (the one that gets the temporary profile).
  • Access to the registry editor (regedit) – it’s built into Windows.

Step-by-Step

  1. Back up your current data. Before editing the registry, copy any important files from the temporary profile folder (usually C:\Users\TEMP or C:\Users\Temp Profile) to a safe location like an external drive or cloud storage. This ensures you don’t lose anything if something goes wrong.
  2. Log in with an administrator account. If the affected user is an admin, create a temporary admin account or use another admin account to proceed. You cannot fix your own profile while you’re using it.
  3. Open the Registry Editor. Press Win + R, type regedit, and press Enter. Click “Yes” if prompted by User Account Control.
  4. Navigate to the ProfileList key. In the left pane, expand the following path:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
  5. Find the affected user’s SID. Click on each subkey (they look like long strings of numbers and letters, e.g., S-1-5-21-...). Look for a value named ProfileImagePath that points to the user’s real profile folder (usually C:\Users\YourUsername). Note the SID of the key that matches the affected user.
  6. Check for a .bak key. Look for a key with the same SID but ending in .bak (e.g., S-1-5-21-...-1001.bak). If it exists, this is your backup of the original profile registration. If not, you’ll need to fix the current key directly.
  7. Fix the current key (no .bak key). If there is no .bak key, right-click the SID key and select Permissions. Click Advanced, then check the box “Replace owner on subcontainers and objects” and change the owner to Administrators. Click OK. Then, in the Permissions window, give Full Control to Administrators and click OK. Now you can edit the key.
  8. Edit the ProfileImagePath value. Double-click ProfileImagePath and make sure it points to the correct folder, e.g., C:\Users\YourUsername. If it’s wrong, correct it.
  9. Remove the temporary profile flags. In the same SID key, look for two values: RefCount and State. If RefCount exists, right-click it and select Delete. If State exists, double-click it and set its value to 0 (zero). If State doesn’t exist, create a new DWORD (32-bit) value named State and set it to 0.
  10. Restore from the .bak key (if it exists). If you found a .bak key, right-click the current SID key and select Rename. Add .old to the end of the name. Then right-click the .bak key, select Rename, and remove the .bak suffix so it becomes the active SID key. Now follow the same steps as above to delete RefCount and set State to 0.
  11. Restart the computer. Close the Registry Editor and restart Windows. Log in with the affected user account. Your profile should load normally, with your desktop, files, and settings restored.

Common Mistakes

  • Editing the wrong SID. Double-check that the ProfileImagePath matches the exact username. Mistaking a similar SID can corrupt another user’s profile.
  • Deleting the entire SID key. Only delete the RefCount value, not the whole key. Deleting the key removes the profile from Windows entirely.
  • Skipping the backup. If you don’t back up your data first, you risk losing files if the registry edit fails or you accidentally delete the wrong thing.
  • Not setting State to 0. Leaving State as is can cause Windows to continue treating the profile as temporary.

Tips

  • Create a system restore point before editing the registry. This gives you an easy rollback if something goes wrong.
  • Use a second admin account to perform the fix. Trying to fix your own profile while logged in often fails because the profile is in use.
  • Check disk errors first. Sometimes a temporary profile is caused by a corrupted user folder. Run chkdsk C: /f in an elevated command prompt to check for disk issues before editing the registry.
  • Keep your Windows updated. Some profile issues are fixed by cumulative updates, so ensure Windows Update is fully installed.

Troubleshooting

  • Still getting a temporary profile after the fix. Reboot and try again. If it persists, the user profile folder itself may be corrupted. Rename the folder (e.g., C:\Users\YourUsername.old) and log in again – Windows will create a fresh profile, but you’ll need to manually copy your files from the old folder.
  • Access denied when editing the registry key. Make sure you’re logged in as an administrator and that you’ve taken ownership of the key as described in Step 7. If you still can’t edit, try booting into Safe Mode and repeating the steps.
  • Profile loads but settings are missing. If your files are in the temporary profile folder but not in the normal one, copy them over manually. You may also need to reapply your personalization settings.
  • Cannot find the SID for the affected user. Use the command prompt to find it: open Command Prompt as admin and type wmic useraccount get name,sid. Match the username to the SID.
  • After deleting RefCount, the user cannot log in at all. This is rare but can happen if the profile path is wrong. Restart and press F8 to boot into Safe Mode, then revert the changes you made (restore the original values).

Frequently Asked Questions

What causes a temporary profile in Windows?

It usually happens when Windows cannot access the user’s profile folder due to corruption, permission issues, or a registry error. It can also occur after a failed Windows update or a sudden shutdown.

Will I lose my files if I get a temporary profile?

No, your files are not deleted. They remain in the original profile folder (e.g., C:\Users\YourUsername). The temporary profile is just a new, empty profile that Windows loads temporarily.

Can I fix a temporary profile without editing the registry?

Sometimes. You can try running sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth in an elevated command prompt to repair system files. If that doesn’t work, the registry fix is the most reliable method.

How do I copy my files from the temporary profile to my real profile?

Navigate to C:\Users\TEMP or C:\Users\Temp Profile and copy the contents of the Desktop, Documents, Downloads, and other folders to the corresponding folders in C:\Users\YourUsername. You may need to enable viewing hidden files to see all folders.

Is it safe to delete the temporary profile folder?

Only after you’ve successfully restored your normal profile and confirmed all your files are safe. Then you can delete the temporary folder (e.g., C:\Users\TEMP) to free up space, but it’s not required.

Why does the temporary profile issue keep happening?

If it recurs, there may be a deeper issue like a failing hard drive, a corrupted user account, or a malware infection. Run a full antivirus scan and check the disk with chkdsk. If the problem persists, consider creating a new user account and migrating your data.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →