Profile Management

迁移用户配置文件

本文包含有关将 Citrix® 用户配置文件转换为 Windows 漫游配置文件的说明。它还描述了如何从 Personal vDisks(Citrix 虚拟桌面™ 的一项功能)中删除 Citrix 用户配置文件,以便 Profile Management 可以处理它们。

有关迁移策略的更多信息,请参阅 升级和迁移

迁移到漫游配置文件

您可以随时将 Citrix 用户配置文件迁移到 Windows 漫游配置文件。将配置文件数据移动到存储漫游配置文件的网络位置。迁移后,Profile Management 不参与处理用户登录或应用程序设置。

  1. 确保所有用户都已注销。
  2. 从由软件管理的所有计算机中删除配置文件管理服务。
  3. 在用户存储中,将 \UPM_Profile 的内容移动到您的漫游配置文件位置。您无需移动跨平台设置存储的内容。
  4. 此外,仅对于版本 1 配置文件,从 \UPM_Profile 的所有子文件夹中删除 _upm_var 后缀。 注意:您可能会发现脚本可以简化此步骤。

从个人 vDisk 迁移

If you use the Personal vDisk feature in Citrix virtual desktops, by default user profiles are stored on the Personal vDisk’s P: drive not the virtual desktop’s C: drive. If instead you want Citrix Profile Management (not the Personal vDisk) to process the profiles, you adjust this default when installing the Virtual Delivery Agent by modifying the Registry on the master image used for a new catalog. In this scenario, because the catalog is new, no users have logged on, so no profiles are stored on the P: drive.

Important: An alternative scenario occurs if you enable Profile Management on machines in existing catalogs with Personal vDisks. Because the catalog is already in use, logons have taken place and profiles are present on the P: drive. The profiles remain there after you modify the Registry. Therefore adjust the default differently.

Issues that indicate the presence of profiles on P: drives while Profile Management is enabled include users having to reset their wallpaper, having to reconfigure their applications, or receiving temporary profiles.

按照这些说明在此替代方案中调整默认设置。

  1. 为要迁移其配置文件的虚拟机安排维护停机时间。

  2. 创建启动脚本(或编辑现有脚本)。包含一个命令,用于运行 Delprof.exe(Microsoft 提供的适用于 Windows XP 的配置文件删除工具)或 Delprof2.exe(Sepago 提供的适用于更高版本操作系统的类似工具)。在运行命令后跟一个关机命令:

    pre codeblock \\<share name>\delprof.exe /q /i shutdown /s /t 0 <!--NeedCopy-->

    您可以从 Microsoft 网站下载 Delprof.exe。有关此工具的信息,请参阅 https://www.microsoft.com/zh-cn/download/details.aspx?id=5405

  3. 在主映像上,将以下注册表设置从 1 更改为 0:

    注意: 不正确地编辑注册表可能会导致严重问题,甚至可能需要重新安装操作系统。Citrix 无法保证能够解决因不正确使用注册表编辑器而导致的问题。请自行承担使用注册表编辑器的风险。在编辑注册表之前,请务必备份注册表。

    HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\personal vDisk\Config\EnableUserProfileRedirection

  4. 更新主映像的清单。

  5. 在计划停机期间,将主映像分发到虚拟机。确保它们重新启动。此时,脚本将运行,从 P: 驱动器中删除配置文件,并关闭计算机。

  6. 当所有计算机都关闭后,删除启动脚本(或您添加到现有脚本中的行)。

  7. 启动所有计算机或让用户登录。从此时起,配置文件将存储在虚拟桌面的 C: 驱动器上。

注意: 要反向迁移配置文件,使其由 Personal vDisk(而非 Profile Management)管理,请按照以下说明操作。但将 EnableUserProfileRedirection 的注册表设置从 0 更改为 1。此更改会将配置文件加载到 Personal vDisk 的 P: 驱动器上。

迁移用户配置文件