更改Windows系统用户档案

时间:2021-11-30 08:07:59

更改Windows系统用户档案目录:

在Windows XP中,该目录信息存储在注册表中
注册表项是:HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/ProfileList/ProfilesDirectory(在修改注册表之前请做好备份)
你需要修改更根目录的ProfilesDirectory项,以及对应于各个用户的子节点S-1-5-xxxxxxxxxxxxxxxxxx中的相应项

不要忘了复制先前的用户文档文件夹到新的目录,包括Default User/ 和 All Users/,NetworkService/ 和 LocalService/目录中的文件可以跳过。在移动一个用户的档案文件是,你需要登录到另一个用户

转移Windows系统用户档案目录到新的文件夹的正常顺序如下:
1.新建新的用户档案目录
2.修改注册表,如上所述
3.如果当前用户是User1,复制非当前用户的档案文件到新目录
4.使用另一个账户登录 ,复制User1的档案文件到新目录
5.重启计算机,使用User1登录


原文:

Changing the location of your Windows user profiles directory

In Windows XP, the location is stored under

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/ProfileList/ProfilesDirectory

You should change it there as well as in the S-1-5-xxxxxxxxxxxxxxxxxx nodes under it, corresponding to the different users on the system.

Don't forget to copy the files in the former user profiles directory over to the new one, including those for Default User/ and All Users/,
but you may skip the NetworkService/ and LocalService/ directories. You should also login as a different user from the account whose contents you are transferring.

The proper order for switching over to the new directory is:

   1. Create the new user profiles directory.
   2. Edit the registry as outlined above.
   3. Reboot for the registry changes to take effect.
   4. Log-in as the users for which you want to change the profile directory to. (this is needed so that Windows will recreate the user profile files and directory correctly)
   5. Reboot again, then log-in as a different user (e.g. Administrator) from the one whose files you wish to copy over to the new user profiles directory.
   6. Copy all the files in the old profiles directory for the user to the newly created one.