Sie sind auf Seite 1von 8

Fix "The User Profile Service failed the logon. User profile cannot be loaded.

" Error in Windows 7


Information This will show you how to fix when you log on to Windows 7 using a temporary profile, and get the following error message:

The User Profile Service failed the logon. User profile cannot be loaded.
This tutorial was updated from our Vista Forums tutorial created 02-10-2008: The User Profile Service failed the logon. User profile cannot be loaded. - Vista Forums For additional details on this user profile error, see also: Error message: "The User Profile Service failed the logon. User profile cannot be loaded

Note

Known Causes:
The C:\Users\(user-name) user profile folder was manually deleted instead of properly deleting the user account through User Accounts in the Control Panel. A user profile that is manually deleted does not remove the security identifier ( SID) from the profile list in the registry. Since the SID is still present, Windows 7 will still try to load the profile by using the ProfileImagePath that points to a nonexistent path. Therefore, the profile cannot be loaded. The C:\Users\(user-name) user profile folder itself was manually renamed, instead of using the proper method in this tutorial. An unknown issue with the user profile entering into a backup state occurred. Corrupted user profile. Occasionally, Windows 7 might not read your user profile correctly, for example, if your antivirus software is scanning your computer while you try to log on. Try restarting your computer and logging on with your user account again to resolve the issue before following the options below.

In Preparation: Log On to an Administrator Account


NOTE: You must be logged on to another administrator account using either step below before you will be able to move on to either OPTION ONE or OPTION TWO below.

1. To

Log

on

to

another

Administrator

account.

NOTE: If you do not have another Administrator account, then proceed to step 2 . A) Log off, and log on to an available administrator account that doesn't have this error. B) Go to either OPTION ONE or OPTION TWO below for what you would like to do.

OR 2. To Boot into "Safe Mode" and Use the built-in Administrator account
A) Using your "retail" Windows 7 installation disc or a created system repair disc, boot into Safe Mode. B) Do either step C or D below depending if Safe Mode booted into the built-in Administrator account by default or not. NOTE: If this user account with the user profile error was the only administrator account you had created or enabled, then Safe Mode may automatically boot into the built-in Administrator account. C) If Safe Mode did not boot into the built-in Administrator account by default, then enable the built-in Administrator account, log off in Safe Mode, and log on to the builtin Administrator account to logon to that account in Safe Mode. D) If Safe Mode did boot into the built-in Administrator account by default, then go to either OPTION ONE orOPTION TWO below for what you would like to do.

OR 3. To Enable the Built-in Administrator account at Boot


A) For how, see: How to Enable the Built-in Elevated "Administrator" Account from WinRE B) When enabled, log in to the built-in Administrator account, and go to either OPTION ONE or OPTION TWO below for what you would like to do

OPTION ONE To Fix the User Account Profile


1. Before starting, it is highly recommended that you create a system restore point in
case you make a mistake while in the registry. This way you will easily be able to do a system restore to use the created restore point to undo the mistake.

2. Open 3. If

the

Start

Menu,

type regedit in by UAC,

the

search then

box,

and click

press

Enter. on Yes.

prompted

4. In regedit, navigate to the location below. (see screenshot below step 5A)
Code:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

5. In the left pane, click on a S-1-5 (SID) key with a long number.
A) In the right pane of the selected S-1-5 (SID) key, look at the Data value of ProfileImagePath to see if it is the user account (ex: Moderator) with the error.

B) If not, then repeat steps 5 and 5A until you have the correct S-1-5 (SID) key with a long number selected. C) If it is, then continue on to step 6 or step 7 depending on if you have either one or two S-1-5 (SID) keys listed with the exact same long number. One without .bak, and one with .bak at the end.

6. If you have Two S-1-5 (SID) keys with the Same Long Numbers
NOTE: This is if you have two S-1-5 folders (SID key) with the exact same long numbers, but the second one has .bak at the end of the long numbers and the first one doesn't . A) In the left pane, right click on the first (top) S-1-5..... folder (SID key) that does not have .bak at the end of the numbers and click Rename. (see screenshot below)

B) Add .bk to the end of the numbers. (see screenshot below)

C) In the left pane, right click on the second S-1-5..... folder (SID key) with .bak at the end of the numbers and click Rename. (see screenshot below step 6B) D) Remove only .bak from the end of the numbers and press Enter. (see screenshot below step 6B) E) Now go back and Rename the first one with .bk to .bak now at the end of the numbers and press Enter. (see screenshot below)

F) Go to step 8.

7. If

you

have

Only

One

S-1-5

(SID)

key

with

.bak

NOTE: This is if you have only one S-1-5 folder (SID key) with long numbers and ended with .bak. A) In the left pane, right click on the S-1-5..... folder (SID key) with .bak at the end of the numbers and clickRename. (see screenshot below step 7B) B) Remove only .bak at the end of the numbers and press Enter. (see screenshot below and below step 10)

8. In the right pane of the one without .bak now, right click on RefCount and click
on Modify. (see screenshot below step 10) NOTE: If you do not have RefCount, then right click on a empty space in the right pane and click New and DWORD (32 bit) Value, then type RefCount and press Enter. This value for this entry will reset and return back to the original value after you have restarted the computer and logged on to the account. A) Type 0 (number) and click on OK. (see screenshot below)

9. In the right pane of the one without .bak now, right click on State and click on Modify.
(see screenshot below step 10) NOTE: This value for this entry will reset and return back to the original value after you have restarted the computer and logged on to the account. A) Type 0 (number) and click on OK. (see screenshot below)

10. The registry will now look like this for the one without .bak now. (see screenshot
below)

11. Close

regedit,

and

restart

the

computer.

12. See if you are able to log on to the use account now without getting this error.
NOTE: If this still does not help, then either try OPTION TWO below or try doing a system restore at boot using a restore point dated before you got this error.

OPTION TWO To Delete the User Account and Create a New User Account
NOTE: This option is only if you do not care about losing the user account with this error and possibly all contents of it's C:\Users\(user-name) user profile folder. Your programs will still be installed and unaffected. 1. Before starting, it is highly recommended that you create a system restore point in case you make a mistake while in the registry. This way you will easily be able to do

a system

restore to

use

the

created

restore

point

to

undo

the

mistake.

2. Create a new user account that is the same type (standard or administrator) as the
user account with this error.

3. If you are able to, you could copy the contents of the user folders from the old user
account's C:\Users\(user-name) user profile folder with the error into the new account's (step 2) C:\Users\(user-name) user profile folder. Be sure to also copy anyshortcuts in the Start Menu from the old user account into the new user account as well.

4. In User Accounts from the Control Panel, delete the user account with the error. 5. Open 6. If
Code:

the

Start

Menu,

type regedit in by UAC,

the

search then

box,

and click

press

Enter. on Yes.

prompted

7. In regedit, navigate to the location below. (see screenshot below step 8A)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

8. In the left pane, click on a S-1-5 (SID) key with a long number.
A) In the right pane of the selected S-1-5 (SID) key, look at the Data value of ProfileImagePath to see if it is the user account (ex: Moderator) with the error.

B) If not, then repeat steps 8 and 8A until you have the correct S-1-5 (SID) key with a long number selected. C) If it is, then continue on to step 9.

9. Right click on the selected SID key with the long number, and click on Delete. 10. Click on Yes to confirm deletion. (see screenshot below)

11. If there is another SID key directly below the selected SID key (step 9) with the exact
same long number with .bak at the end, then right click on this same SID key with .bak on it, and click on Delete. (see screenshot below)

A) Click on Yes to confirm deletion. (see screenshot below)

12. When

finished,

close

regedit.

13. Restart the computer, and log on to your new account.


That's it, Shawn

Das könnte Ihnen auch gefallen