- Remote Desktop: Fix Error “Windows cannot log you on because your profile cannot be loaded”
- Option 1 – Log user off from Task Manager
- Option 2 – Log User Off Remotely
- Error occurs during desktop setup and desktop location is unavailable when you log on to Windows for the first time
- Symptoms
- Cause
- Resolution
- Status
- More information
- Events that are logged in Event Viewer
- Details of the failure that are displayed in Process Monitor
- Error- Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, and that your network is functioning correctly. Unable to log-in to guest account
- windows cannot log you on because your profile cannot be loaded check that you are connected to the
- Replies (1)
- Windows cannot log you on because
- Asked by:
- Question
- All replies
Remote Desktop: Fix Error “Windows cannot log you on because your profile cannot be loaded”
When connecting to a computer via Remote Desktop in Microsoft Windows Server, you may get an error that says:
“Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network or that your network is functioning correctly. If this problem persists, contact your network administrator.”
This usually happens because the computer you are trying to log into has too many users connected. One or more of them will need to log out.
Option 1 – Log user off from Task Manager
If having somebody log out is not possible, you may want to disconnect idle user sessions using these steps:
- While actively logged into the server, bring up the Windows Task Manager by right-clicking a blank area of the taskbar and choosing “Task Manager“.
- Make sure you have “More details” expanded, then select the “Users” tab.
- If the “Status” shows as “Idle” for a user, you can select the user, and then select “Disconnect“. You may need to ask somebody with admin rights to login to the computer and disconnect the idle users.
Option 2 – Log User Off Remotely
Another option would be to use the “logoff” command to remotely log users out of the system. For example, the following command will remotely log session “TEST01” out of the server with a computer name of “SERVER01”:
logoff TEST01 /server:SERVER01
Error occurs during desktop setup and desktop location is unavailable when you log on to Windows for the first time
This article provides help to solve an issue where profile loading fails when the ntuser.dat or usrclass.dat file is defined as read-only, or the profile user lacks the appropriate permissions for these two .dat files.
Original product version: В Windows 10 — all editions, Windows Server 2012 R2
Original KB number: В 3048895
Symptoms
Profiles don’t load when users log on to a computer for the first time. Or, you log on to a computer where policy deletes the cached profile after a date interval when you log off.
Logons that use mandatory user profiles or Virtual Desktop Infrastructure (VDI) may also be affected.
Profiles don’t load when users log on by using cached user profiles.
Services don’t start because of profile load failures. Affected services include but aren’t limited to the following:
When this issue occurs, related events are logged. See the events that are logged in Event Viewer.
Process Monitor may indicate that a CreateFile operation fails with an ACCESS DENIED result to the following path, depending on how file access is constrained: :\documents & settings\ \local settings\Application Data\Microsoft\Windows\UsrClasss.dat.
The screenshot of Process Monitor can be seen here:
Cause
Update 3021674 adds checks for access to the Ntuser.dat and the Usrclass.dat files.
Resolution
To resolve this issue, follow these steps:
Check whether the READ ONLY flag is set on the NTUSER.DAT or USERCLASS.DAT file for the profile that fails to load.
New user profiles are derived from C:\users\default\ during first-time account logons. If profiles fail to load with signatures that match those that are described in the «Symptoms» section, check whether the Read-Only bit is enabled on the NTUSER.DAT and USRCLASS.DAT files in the profile directory for the users or service accounts in question.
NTUSER.DAT in Windows Vista and later versions of Windows is located in C:\users\default\ntuser.dat. Earlier operating systems have other paths, such as C:\Documents and Settings\ \ntuser.dat.
The USRCLASS.DAT file is typically located along a path like C:\Documents and Settings \Local Settings\Application Data\Microsoft\Windows\UsrClass.dat or C:\Users \AppData\Local\Microsoft\Windows.
In Windows Explorer, right-click the NTUSER.DAT or USRCLASS file for the relevant default user or cached user profile. The Read-only check box should be cleared. It this check box is selected, it will cause profile load failures.
Check the NTFS File System permissions setting on the NTUSER.DAT or USERCLASS.DAT file in the cached profile directory that fails to load.
In the following screenshot, the test user, CONTOSO/testUser, has full control over NTUSER.DAT (not shown) and USRCLASS.DAT. Everyone isn’t listed in the ACL Editor group.
NTFS File System ACLS on DAT files | Advanced NTFS File System ACLS on DAT files |
---|---|
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the «Applies to» section.
More information
Events that are logged in Event Viewer
Log Name | Event sender | Event ID | Event message text |
---|---|---|---|
Application | Microsoft-Windows-User Profiles Service | 1542 | Windows cannot load classes registry file. DETAIL — Unspecified error Die Klassenregistrierungsdatei kann nicht geladen werden. DETAIL — Unbekannter Fehler |
Application | Service Control Manager | 7005 | The LoadUserProfile call failed with the following error: The system cannot find the file specified. |
Application | Service Control Manager | 7024 | The SQL Server (MSSQLSERVER) service terminated with service-specific error 2148081668 (0x80092004). |
Application | Userenv | 1500 | Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, or that your network is functioning correctly. If this problem persists, contact your network administrator. DETAIL — The system cannot find the file specified. |
Application | Userenv | 1502 | Windows cannot load the locally stored profile. Possible causes of this error include insufficient security rights or a corrupt local profile. If this problem persists, contact your network administrator. |
Details of the failure that are displayed in Process Monitor
ProMon detailsThe following message is displayed in Process Monitor:
Desired Access: Generic Read/Write, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: H, ShareMode: Read, Write, AllocationSize: n/a, Impersonating:
The following screenshot shows the Process Monitor details:
Error- Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, and that your network is functioning correctly. Unable to log-in to guest account
Original Title: Problem: Guest account does not work even after enabling due to profile issues.
After enabling the Guest account on this system, attempts to log in under this account fail with the «user profile cannot be loaded» message. Based on information I found online about this error, I checked HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList to see if a key existed for Guest (it doesn’t). I also checked the Windows application log and found the following entries:
- Windows cannot copy file C:\Users\Default\AppData\Local\Microsoft\Windows Live\SqmApi\SqmData720896_00.sqm to location C:\Users\Guest\AppData\Local\Microsoft\Windows Live\SqmApi\SqmData720896_00.sqm. This error may be caused by network problems or insufficient security rights.
DETAIL — Access is denied.
DETAIL — Access is denied.
Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, and that your network is functioning correctly.
DETAIL — Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
The C:\Users\TEMP path does not exist, and the specified sqm file has no deny entries in its ACL, just full control for SYSTEM, LOCAL SERVICE, my admin account, and the Administrators group.
I am running Windows 7 Ultimate x64 edition.
windows cannot log you on because your profile cannot be loaded check that you are connected to the
Replies (1)
1. When exactly do you get this error message?
2. What is the complete and exact error message?
3. How long have you been facing this issue?
4. Did you make any changes on the computer prior to this issue?
Check if the issue persists in safe mode (Step 1). If the issue does not persist in safe mode then, perform clean boot (Step 2) on your computer.
Step 1:
1. Restart the computer
2. Start tapping F8 key
3. You will get advanced boot option window
4. Select the option “Safe mode”
Step 2:
Starting your computer by using a minimal set of drivers and startup programs so that you can determine whether a background program is interfering with your game or program. This kind of startup is known as a «Clean boot.»
Refer:
How to configure Windows XP to start in a «clean boot» state
http://support.microsoft.com/kb/310353
After you have finished troubleshooting, follow these steps to reset the computer to start as usual:
1. Click Start, and then click Run.
2. Type msconfig, and then click OK.
The System Configuration Utility dialog box is displayed.
3. Click the General tab, click Normal Startup — load all device drivers and services, and then click OK.
4. When you are prompted, click Restart to restart the computer.
Windows cannot log you on because
This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Asked by:
Question
We are experiancing intermitent, but increasingly frequent issues with users logging on and being unable to load their profile. Error is below..It seems to be related to users passwords expiring, but why is this killing the profile?
Soucre: User Profile Service
Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, and that your network is functioning correctly.
DETAIL — Access is denied.
The belwo KB fixes it, but the service desk are having to do this on each machine, so checking if anyone has a global fix and an idea as to why this keep re-occuring..
All replies
In the KB link you mentioned, there are three methods present. Did you try all the methods?
Also, if the issue persists, create a new user account, and copy all the personal/important files to that user account. Delete the existing user account.
In that case, run SFC scan, when you can logon. Any corrupt system files can also cause the issue. Also, make sure User Profile Service Startup type is set to Automatic and is running.
If you are unable to logon, try in Safe Mode.
Preventive solution is to reinstall Windows as a lot of files are corrupted, as you say. Cure is to run SFC/create a new user account. Also, make sure the PCs are free from any malware infection.
Personally, it’s a good practice to perform clean install every 6 months or 12 months, after backing up important files, to maintain stability. This is because, with usage over time, a lot of temporary files get congested, in conventional HDD type fragmentation increases and errors raise in registry which Windows is not capable of cleaning by itself. Of course, in a corporate scenario, clean installation may not be possible with a large number of PCs. Therefore, imaging a clean installed Windows and restoring it across other PCs is an efficient solution.