如何改变X:\Users\XXX的用户名称

参考了两篇文章:

How to Change the User Folder Name of a User Profile in Windows 7

http://www.sevenforums.com/tutorials/147545-user-profile-folder-change-user-account-folder-name.html

How To Change A Windows Account Name And User Profile Folder Name

http://www.ghacks.net/2011/03/28/how-to-change-a-windows-account-name-and-user-profile-folder-name

 

总体思路:

原来的名称ABC

新的名称DEF

1.注销当前用户ABC,切换到另一个具有管理员权限的用户,可以新建也可以使用内置的Administrator。

2.先在控制面板里改变账户名称ABC->DEF,再到X:\Users目录中重命名ABC文件夹,X:\Users\ABC->X:\Users\DEF。

3.改变注册表的键值,在HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList中,查看每一个子项下的ProfileImagePath,找到原来的目录名,并将其改为当前的目录名X:\Users\ABC->X:\Users\DEF,这里建议最好替换注册表中所有的目录键值。

4.切换回原来的账户,OK

posted on 2011-12-04 12:01  eshizhan  阅读(4198)  评论(0编辑  收藏  举报