/
/

How to Enable or Disable Log On Users with Temporary Profiles in Windows

How to Log On Users With Temporary Profiles blog banner image

This tutorial demonstrates how to prevent or allow Windows to log on users with temporary profiles. It includes an explanation of what temporary profiles are, and why you may need to enable or disable temporary profiles in Windows 10 and Windows 11. Instructions are included for configuring temporary profiles using Local Group Policy and the Windows Registry Editor.

How to enable or disable log on with temporary profiles using the Windows Registry Editor

The Windows Registry Editor can be used in all editions of Windows 10 and Windows 11 (including Home, Pro, Enterprise, and Education) to enable or disable the use of temporary profiles. Before you make changes, you should create a backup of your registry.

You’ll need to be logged in as an administrator to access the Registry Editor.

  • Right-click on the Start button and select Run
  • Type the command regedit.exe in the Run dialog then press the Enter key
  • In the Windows Registry Editor, navigate to the key Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System (you can copy and paste this path into the navigation bar)
  • With the System key highlighted, create a new value by selecting Edit > New > DWORD (32-bit Value) and name it ProfileErrorAction (only if this value doesn’t already exist)
  • Set the value of ProfileErrorAction to 1 to disable log on users with temporary profiles
  • Delete the ProfileErrorAction value by right-clicking on it and selecting Delete to enable log on users with temporary profiles

Registry Editor dialog box

How to enable or disable log on with temporary profiles using the Local Group Policy Editor

The Local Group Policy Editor is available in Pro, Enterprise, and Education versions of Windows 10 and Windows 11 (and is not accessible from Home editions). Before you make changes to Group Policy, you can back up your Group Policy settings. You must be logged in as an administrator to use the Local Group Policy Editor.

  • Right-click on the Start button and press Run
  • Enter the command gpedit.msc and press OK
  • Navigate to Computer Configuration\Administrative Templates\System\User Profiles
  • Double-click on the Do not log users on with temporary profiles setting to edit it

Local group policy editor dialog box

  • Change the value of the Do not log users on with temporary profiles setting to Enabled to disable Log on with temporary profiles
  • Change the value of the Do not log users on with temporary profiles setting to Not configured (the default) to enable Log on with temporary profiles
  • Click OK to save and apply the change

Do not log users on with temporary profiles dialog box

  • Close the Local Group Policy Editor

You can also deploy this setting using Group Policy for Active Directory if you are managing multiple Windows devices.

Understanding Windows temporary profiles and why you might prevent their use

A Windows user profile contains all the unique settings for a user (like their configured email accounts, desktop wallpaper, browser preferences, bookmarks, etc.), as well as their documents and files, with individual directories for their documents, photos, the files on their desktop, and so on. Windows user profiles are stored in the C:\Users folder. User profiles allow each user to maintain their own files and settings that are separate from other users (and inaccessible to them unless they are an administrator).

If, for some reason, there’s a problem accessing a user’s profile (for example, it has become corrupted, or there is a permissions issue), Windows will, by default, create a temporary, empty profile so that the user can continue to log in. This temporary profile does not contain any of the user’s files or configuration, and, importantly, is destroyed when the user logs out.

This presents an issue for both home and enterprise users who are unaware of this behavior: While users are alerted that they are using a temporary profile, the implications of this are often not obvious, and the notification is readily dismissed. The user will be given a temporary profile, save some important files or work-in-progress to it, and then log out, deleting those files (which will most likely be unrecoverable).

This makes it preferable in many situations to completely disable the ability to log on with temporary profiles.

The Windows Event Viewer can be used to determine whether temporary profiles have been used, but again, this is typically too late to prevent data loss if the user has already logged out.

By preventing Windows from creating temporary profiles, the user will not be able to log in at all, allowing the underlying issue to be investigated and resolved, rather than temporary profiles potentially causing more mess to clean up.

Keeping your users’ profiles and data safe in enterprise and education

Temporary profiles are a common cause of problems in enterprise environments, often causing users to lose data when the temporary profile is destroyed. This leads to lost productivity, user frustration, and increases load on your support helpdesk, especially during times of network instability, where multiple Windows PCs may be affected at the same time.

Ensuring that users store their files in network shares and that roaming profiles are properly configured helps protect against files being lost to temporary profiles, and the use of temporary profiles when there is a connectivity issue. In business-critical scenarios, individual endpoints can also be backed up as an extra layer of protection.

NinjaOne Backup provides a platform for backing up all of your employee devices remotely. You can choose to back up specific files and folders (such as user profiles) or whole system images to the cloud or your own infrastructure, using a single solution that covers your Windows 10, Windows 11, Mac, and server machines.

You might also like

Ready to simplify the hardest parts of IT?
×

See NinjaOne in action!

By submitting this form, I accept NinjaOne's privacy policy.

NinjaOne Terms & Conditions

By clicking the “I Accept” button below, you indicate your acceptance of the following legal terms as well as our Terms of Use:

  • Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms.
  • Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party.
  • Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library belonging to or under the control of any other software provider.
  • Warranty Disclaimer: The script is provided “as is” and “as available”, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations.
  • Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks.
  • Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script.
  • EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).