The world is not beautiful

February 25, 2006

[zz]HOW TO:更改用户配置文件和程序设置的默认位置

Filed under: Software

参见:
http://support.microsoft.com/kb/322014
ps: 强烈b4微软,这种list结构的文章居然用的是table格式化,弄的我转换格式花了好长时间

概要

本文描述了如何移动用户的 Documents and Settings 文件夹。

所有用户的配置文件信息均存储在“%SystemDrive%\Documents and Settings”文件夹中。如果您尝试在
Windows 中移动或重命名用户的 Documents and Settings 文件夹,您将收到以下错误信息:

Documents and Settings is a Windows system folder and is required for Windows to run
properly.It cannot be moved or renamed.
注意:本文包含有关 Microsoft 不支持的配置的信息。Microsoft
提供此信息仅供参考;Microsoft 不能保证此配置可以正常运行。

警告:Microsoft
强烈建议不要重命名任何系统文件夹。如果重命名系统文件夹,可能会导致系统故障或计算机性能不稳定。使用本文中的信息之前,请备份您的计算机。

移动用户的 Documents and Settings
文件夹

警告:注册表编辑器使用不当可导致严重问题,可能需要重新安装操作系统。Microsoft
不能保证您可以解决因注册表编辑器使用不当而导致的问题。使用注册表编辑器需要您自担风险。

注意:此方法并不会重新定位重要的 Windows 组件。此方法仅用于移动用户特定的数据。

  1. 确定用户的配置文件路径。确定配置文件路径有两种方法。可以使用以下两种方法中的任一种(首选用户
    SID 方法):

    • 用户 SID 方法:
      1. 使用 Windows Server Resource Kit 中的 Getsid 工具获取
        SID。使用与以下示例类似的语法:

        getsid \\服务器1用户名
        \\服务器1用户名
      2. 获取 SID 之后,使用 Regedit.exe 或 Regedt32.exe 在以下注册表项之下选择用户的
        SID:

        HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
    • 用户路径设置方法:
      1. 以用户身份登录到计算机,然后在命令提示符下键入 set。记下 USERPROFILE 的设置,然后关闭命令提示符窗口。
      2. 以计算机管理员的身份登录。
      3. 使用注册表编辑器将 USERPROFILE 设置添加到以下注册表项中:
        HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
      4. 单击注册表项,然后单击编辑菜单上的查找
      5. 查找框中,键入 USERPROFILE 设置的值,然后单击查找下一个
  2. 更改 ProfilesDirectory 值以使用您希望在
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
    注册表项中使用的新路径。
  3. 退出注册表编辑器,然后以用户身份登录。在命令提示符下键入 set,以确认路径已更改。


这篇文章中的信息适用于:
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows 2000 Datacenter Server

Comments »

The URI to TrackBack this entry is: http://adamhj.blogsome.com/2006/02/25/changeuserprofilepath/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>


Get free blog up and running in minutes with Blogsome
Theme designed by Jay of onefinejay.com