You receive a "The User Profile Service failed the logon” error message

#你收到一条“user profile service未能登录”的错误信息


Symptoms(问题描述)


When you log on to a Windows 7-based or a Windows Vista-based computer by using a temporary profile, you receive the following error message:

#当你使用临时帐号登录基于Windows7或者Windows Vista的电脑时,你收到下面这条错误信息:

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

#User Profile Service未能登录,无法加载用户配置文件。

Resolution(解决方法)


Occasionally, Windows might not read your user profile correctly, such as if your antivirus software is scanning your computer while you try to log on. Before you follow the methods here, try restarting your computer and logging on with your user account again to resolve the issue. If you restart your computer and it does not resolve this issue, use the following methods to resolve this issue. 

#有时候,Windows可能不会读取到正确的用户配置信息,比如当你尝试登录系统的时候你的杀毒软件正在扫描你的电脑。在你按照下面的解决方法解决问题之前,试着重启你的电脑并用你的账户登录系统看是否能解决问题。如果你重启电脑后,问题仍然没有解决,就使用下面提供的方案来解决吧。


Note You must be able to log on to an administrator account to fix your user profile or copy your data to a new account. Before you resolve the issue, log on to Windows by using another account that has administrative permissions, or restart in safe mode to log on with the built-in administrator account. For more information about how to start in safe mode, visit the following Microsoft website:

#注意:你必须能够用管理员帐号(administrator)登录系统,能够修改用户配置信息或者把你的数据复制给一个新的帐号。在解决问题之前,用另一个有管理员权限的账户登录系统,或者用内置的管理员帐号进入安全模式。更多关于安全模式的信息可以访问下面的网址:

Start your computer in safe mode(通过安全模式启动计算机)

Method 1: Fix the user account profile

#方法一:修改用户配置文件

To fix the user account profile, follow these steps: 

#按照下面的方法修改用户配置文件

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

#重要:此部分,方法或任务包含步骤告诉你如何修改注册表,但是,如果你没有正确修改注册表将会发生很严重的问题。因此请严格按照下面的步骤来操作。在你修改注册表之前,请采取保护措施,备份你的注册表信息,这样在发生严重问题时可以恢复注册表。更多关于怎样备份和恢复注册表的内容,可以点击下面的文章编号查看microsoft知识库:

322756 How to back up and restore the registry in Windows

#在Windows怎样备份和恢复注册表

1、Click Start, type regedit in the Search box, and then press ENTER.

#点击开始,在搜索框中输入regedit,按回车键


2、In Registry Editor, locate and then click the following registry subkey:

#在注册表编辑器里,定位并点击下面的建

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


3、In the navigation pane, locate the folder that begins with S-1-5 (SID key) followed by a long number.

#在左边的目录树中,找到以S-1-5开头的一长串数字


4、Click each S-1-5 folder, locate the ProfileImagePath entry in the details pane, and then double-click to make sure that this is the user account profile that has the error.

#点开S-1-5开头的文件夹,在详细面板中找到ProfileImagePath双击打开,确定是不是错误的用户配置信息。

wKioL1cEuJOwT3_WAAEpzOxSAD8629.png

If you have two folders starting with S-1-5 followed by some long numbers and one of them ended with .bak, you have to rename the .bak folder. To do this, follow these steps:

#如果有两个完全相同以S-1-5开头并且一长串数字的文件夹,其中一个以.bak结尾,那就必须按照下面的步骤将这个带.bak的文件夹重命名:

  • Right-click the folder without .bak, and then click Rename. Type .ba, and then press ENTER.

  • 右键单击不带.bak的文件夹,点击重命名,在结尾输入.ba回车

wKioL1cEumPwSCdDAAAZbTjOTr0742.png

  • Right-click the folder that is named .bak, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.

  • 右键单击带.bak的文件夹,点击重命名,将结尾的.bak删除后回车

wKioL1cEuv2ilmRPAAAYCzPgybg600.png

  • Right-click the folder that is named .ba, and then click Rename. Change the .ba to .bak at the end of the folder name, and then press ENTER.

  • 右键单击带.ba的文件夹,点击重命名,把.ba改成.bak回车

wKiom1cEuqCi_sn8AAAXCNj-z4A047.png

If you have only one folder starting with S-1-5 that is followed by long numbers and ends with .bak. Right-click the folder, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.

#如果只有一个以S-1-5开头并且结尾带.bak的文件夹,右键单击这个文件夹,点击重命名,删除结尾的.bak回车


5、Click the folder without .bak in the details pane, double-click RefCount, type 0, and then click OK.

#点击不带.bak的文件夹,进入详细面板,双击RefCount键,输入0确定

wKioL1cEyFOjU8jpAABbLW72gyA653.png

6、Click the folder without .bak, in the details pane, double-click State, type 0, and then click OK.

#点击不带.bak的文件夹,进入详细面板,双击State键,输入0确定

wKiom1cEx8LyEDbRAABXQzCGEJE167.png

7、Close Registry Editor.

#关闭注册表编辑器


8、Restart the computer.

#重启电脑


9、Log on again with your account.

#用你的帐号再次登录系统


Method 2: Log on to Windows and copy your data to a new account

#方法二:登录系统,将你的数据拷贝到一个新的账户下

Create a new account and copy the data from the old account to the new account. For information about how to do this, visit one of the following Microsoft websites: 

#创建一个新的账户,并且从旧的账户下把数据拷贝到新建的账户下。更多信息可以访问下面的网址

Windows 7

Fix a corrupted user profile (Windows 7)

Windows Vista

Fix a corrupted user profile (Windows Vista)


Method 3: Delete the error SID and create a new profile

#方法三:删除错误的SID,创建一个新的配置文件

1、To delete the error SID and create a new profile, follow these steps:

#按照下面的步骤删除SID并且创建一个新的配置文件

  • Delete the error SID.
    To have us fix this problem for you, go to the "Fix it for me" section. If you would rather fix it yourself, go to the "Let me fix it myself" section.

  • 如果让我们来修复这个问题,你可以看“Fix for me”这部分;如果你想自己修复可以看"Let me fix it myself"这部分

Fix it for me

To fix this problem automatically, click the Fix this problem link. Then click Run in the File Download dialog box, and follow the steps in this wizard. 

如果要自动修复这个问题,可以通过下面的链接下载这个自解压程序,并按照步骤操作

Download


Notes(注意)

This wizard may be in English only, but the automatic fix also works for other language versions of Windows.

#这个自解压程序可能只有英文,但这个自动修复程序仍然可以在其他语言的Windows本本中运行。

If you are not on the computer that has the problem, you can save the automatic fix to a flash drive or to a CD, and then you can run it on the computer that has the problem.

#如果你没在出问题的电脑跟前,你也可以把这个修复程序保存到你的优盘或者光盘上,再到有问题的电脑上运行。


Let me fix it myself

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

#重要:此部分,方法或任务包含步骤告诉你如何修改注册表,但是,如果你没有正确修改注册表将会发生很严重的问题。因此请严格按照下面的步骤来操作。在你修改注册表之前,请采取保护措施,备份你的注册表信息,这样在发生严重问题时可以恢复注册表。更多关于怎样备份和恢复注册表的内容,可以点击下面的文章编号查看microsoft知识库:

322756 How to back up and restore the registry in Windows

To resolve this problem yourself, follow these steps:

#按照下面的步骤自行解决问题

1、Delete the profile by using the Computer Properties dialog box. To do this, follow these steps:

#按照下面的步骤,通过计算机属性对话框来删除配置文件

    a、Click Start, right-click Computer, and then click Properties.

    #点击开始,右键点击计算机后点击属性

    b、Click Change settings.
    #点击更改设置

wKioL1cExHXj_42XAACQLwIAveE016.png

    c、In the System Properties dialog box, click the Advanced tab.
    #在系统属性对话框中,点击高级标签

wKiom1cEx-XiEl5xAAB9EYnmdc0162.png


    d、In the User Profiles area, click Settings.

    #在用户配置文件区域点击设置

    e、In the User Profiles dialog box, select the profile that you want to delete, click Delete, and then click OK.

    #在用户配置文件对话框中,选择要删除的配置文件,点击删除,然后点击ok关闭


2、Click Start, type regedit in the Search box, and then press ENTER.

#点击开始,在搜索框中输入regedit回车进入注册表编辑器


3、Locate and then click the following registry subkey:

找到并点击进入下面的注册表键值

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

4、Right-click the SID that you want to remove, and then click Delete.

#右键点击要删除的SID,点击删除

2、Log on to the computer and create a new profile.

#重新登录计算机,创建一个新的用户配置文件