In Windows, a user profile is a set of folders, files, and registry hive that contain a user’s personal settings and files. If the user profile on your local drive is damaged, missing, or deleted, you may receive the annoying “The User Profile Service failed the sign in. User profile cannot be loaded” when logging in to your Windows computer.
Bạn đang xem: the user profile service failed the sign in windows 10
And if Windows lets you log in to the desktop, you may encounter this error instead. In this case, you are logged in with a temporary profile. Any files you create or change during this session will be lost.
This article will guide you through the most common causes and to for the “User Profile Cannot Be Loaded” error.
Possible Causes of the User Profile Cannot Be Loaded Error
Among the most common causes of the User Profile Service error are:
- Corrupted user profile files on disk.
- Antivirus software scans the device and blocks some files in the user profile folder when a user tries to sign in (in this case, just wait a few minutes and try logging into Windows again or restart your device).
- Incorrect user profile mapping in the Windows registry or errors on the device’s file system;
- Incorrect default profile folder NTFS permissions;
- The default profile that is used to create new users is corrupt.
How to Access Windows if Your User Profile is Corrupted?
The “User profile cannot be loaded” error prevents you from logging on to the computer. In order to debug and fix this error, you will need to be logged in to Windows with an account that has local administrator permissions.
If there is another administrator account on the computer and you know its password, log in with it and go directly to Solution 1.
If you have only one user on the computer, you need to enable the built-in administrator account. The built-in Windows administrator is disabled by default. In order to enable this account and reset its password, you need to boot your computer from your favorite Live CD with Windows PE.
I prefer to use a third-party utility called Hiren’s BootCD PE. Make sure to create a bootable CD or USB first. Once you have the Hiren’s Boot CD media, use it to boot your computer.
Let’s now enable the built-in administrator account.
- Click Start > All Programs > Security > Passwords > Windows Login Unlocker.
- Right-click on the Administrator account and click Enable.
- Once enabled, right-click on the Administrator account again and click Change password.
- Enter the new password and click OK.
Restart the computer and log on as the Administrator. If the “User Profile Cannot be Loaded” is localized to the affected user account, then the Administrator account should be able to log in with no errors.
Solution 1: Check the File System and User Profile Services
After logging on to Windows, we recommend you check the following:
- Check that you have enough free space on your system drive (at least a few GB).
- System drive file system errors are the most common cause of a corrupted Windows user profile. Use the following command to check and fix the file system on your system drive:
chkdsk c:\ /f /R
When asked to schedule the disk check on the next restart, press Y and Enter.
Restart the computer and let the disk check run.
Note. This method can take hours, depending on the capacity and content of your hard drive. - Open the services.msc console and check that the User Profile Service is started and
configured to start automatically.
Solution 2: Correct the User Profile in the Registry
Every user on the computer has a profile mapping in the registry. These entries can be found in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. And these mappings can sometimes become corrupted.
- First, let’s find out the SID of the affected user. Open the command prompt and run this command:
wmic useraccount get domain,name,sid
Look for the user account on the list and note its SID value. In this example, the SID for Alpha is S-1-5-21-3197091325-2131292189-11347583-1001.
- Open the registry editor and Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList.
Locate the key matching the user’s SID. In this example, you can see there are two, and the other one has a .bak extension.
The profile corruption may have caused Windows to create a temporary/duplicate profile mapping in the registry:
- Rename the key without the .bak extension and append the .old extension.
- Rename the key with the .bak extension to remove .bak.
Once renamed, the keys will look like the one below.
- Click the SID folder without the extension and confirm that the ProfileImagePath value is correct or not malformed. This value should contain the full path to user’s home directory. Check that this folder exists on your computer. As you can see below, the ProfileImagePath value is mangled. Double-click on this registry item and correct the path to your user profile.
Also, set the State and RefCount values to 0.
The corrected values should look similar to the image below.
- Close the registry editor, restart the computer, and log in as the affected user.
Solution 3: Replace the Affected User Profile’s NTUSER.DAT File
The NTUSER.DAT file can also become corrupted like any other file. And this corruption can cause the User Profile Cannot be Loaded error. If you suspect this to be the case, then you can replace the NTUSER.DAT with the default.
- Use a built-in administrator account to log on to the computer;
- Open the PowerShell prompt as administrator and run the below command to rename the existing NTUSER.DAT file of the user. Replace C:\Users\USERNAME with the user’s profile directory:
Rename-Item C:\Users\USERNAME\NTUSER.DAT NTUSER.DAT.BAK
- Now, copy the default NTUSER.DAT file from C:\Users\Default. Replace C:\Users\USERNAME with the user’s profile directory:
Copy-Item C:\Users\Default\NTUSER.DAT ` -Destination C:\Users\USERNAME\NTUSER.DAT -Force
- Restart the computer and try to log in as the affected user.
Solution 4: Reset the Default User Profile Folder Permissions
Windows can auto-correct issues with missing user profile files by copying them from the Default User Profile folder (C:\Users\Default). This folder is also the source for new user accounts. But if the NTFS ACL on this folder is somehow incorrect, this could also cause the User Profile Cannot be Loaded error when creating a new user account.
Xem thêm: dương vật tiếng anh là gì
Note. Check our tutorial iCACLS: List and Manage Folder and File Permissions on Windows.
Confirm that the C:\Users\Default has the following permissions.
- Owner: SYSTEM
- Everyone: Read & execute
- SYSTEM: Full Control
- Administrators: Full Control
- Users: Read & execute
If not, you can re-add those required permissions.
You can force reapplying permissions on the “C:\Users\Default” folder. Right-click on the Default folder, select Properties > Security > Advanced > Change Permissions > check the box “Replace all child object permission entries with inheritable permission entries from this object” > OK. This will reset the permissions on all nested files and folders.
Note. Check our guide on how to use Get-Acl and Set-Acl cmdlets when managing NTFS permissions for a file or folder with PowerShell.
You can check your default NTUSER.DAT health as follows:
reg load HKU\Default C:\Users\Default\NTUSER.DAT
The operation completed successfully.
reg unload HKU\Default
The operation completed successfully.
If the NTUSER.DAT inside C:\USERS\DEFAULT folder is corrupt or missing, we recommend manually copying health NTUSER.DAT from another user profile on this computer or from another computer with the same Windows build. For example with the command:
xcopy /h C:\Users\administrator\NTUSER.dat C:\Users\Default
Solution 5: Create a New User Profile and Copy Data
If the above methods have not helped, you can create a new profile and copy the old data. This method will create a new user account and profile folder. Once created, you can copy the data from the older profile to the new one.
- Open PowerShell as admin and run the below command to create a new local user account:
$password = Read-Host -AsSecureString $user = @{ password = $password name = 'alpha2' fullname = 'Alpha 2' description = "Alpha's 2nd user profile" } New-LocalUser @user
- Next, add the new account as a member of the local Administrators group:
Add-LocalGroupMember -Group Administrators -Member alpha2
- Log out as administrator and log in as the new local user account.
The profile will be created during the first login.
- After the login is completed, the user can copy the old data from C:\Users\<OLD PROFILE> to C:\Users\<NEW PROFILE>.
When you no longer need the old corrupted profile, you can remove it from the computer and free up some disk space.
- Open the Advanced System Settings by running this command:
SystemPropertiesAdvanced
- Navigate to “Advanced” and click “Settings” under the User Profiles section.
- Select the old profile from the list and click “Delete”.
- Confirm the deletion by clicking Yes.
- Finally, remove the old user account by running the below command in PowerShell. Replace <OLD USERNAME> with the old username to delete it from the computer:
Remove-LocalUser -Name <OLD USERNAME>
Conclusion
In conclusion, encountering the “User Profile Cannot be Loaded” error message on Windows 10 and 11 can be frustrating and worrisome, but several methods exist to fix the problem. These include using the built-in administrator account to create a new user profile, restoring your system to a previous point, or modifying the registry entries.
Xem thêm: 12 trong tiếng anh là gì
Bình luận