Enable multi-session write-back for FSLogix Profile Container

Note:

Profile Container is an FSLogix term. It is a full remote profile solution for non-persistent environments. For details, see https://docs.microsoft.com/en-us/fslogix/configure-profile-container-tutorial.

Overview

FSLogix Profile Container is a VHD-based profile solution. It does not support saving changes in multi-session scenarios. It lets only one session (in read/write mode) write back changes. Changes in other sessions (in read-only mode) are discarded.

However, multi-session scenarios are common in Citrix Virtual Apps use cases. Profile Management now provides a solution to save changes in multi-session scenarios for FSLogix Profile Container. If the same user launches multiple sessions on different machines, changes made in each session are synchronized and saved to FSLogix Profile Container.

During the user logon process, FSLogix mounts Profile Container and redirects I/O requests to the mounted disk. Profile Management then synchronizes changes from the user store to the local profile.

During the user logoff process, Profile Management works differently depending on which FSLogix Profile Container mode is used in the session. If read-only mode is used, Profile Management writes back changes to the user store. If read/write mode is used, Profile Management applies changes from the user store to the local profile directly. Then, FSLogix Profile Container merges changes to the profile container disk.

Note:

The multi-session write-back feature is not compatible with profile streaming.

The following events qualify as changes:

  • Creation
  • Modification
  • Deletion
  • Rename

Enable the feature

You can use the multi-session write-back feature by implementing the Enable multi-session write-back for FSLogix Profile Container policy. The policy is set to Disabled by default. To use the feature, do the following:

  • FSLogix Profile Container

    • Ensure that FSLogix Profile Container is installed and enabled.
    • Ensure that the profile type is set to Try for read-write profile and fall back to read-only.
  • Citrix Profile Management

    • Set the Enable Profile Management policy to Enabled.
    • Set the Path to user store policy with a valid path.
    • (Optional) Set the Processed groups and Excluded groups policies. Ensure that the user groups to process are consistent with those in FSLogix Profile Container.
    • Enable the Enable multi-session write-back for FSLogix Profile Container policy.

To enable the Enable multi-session write-back for FSLogix Profile Container policy in Group Policy, complete the following steps:

  1. Open the Group Policy Management Editor.
  2. Under Computer Configuration > Administrative Templates > Citrix Components > Profile Management > Advanced settings, double-click the Enable multi-session write-back for FSLogix Profile Container policy.
  3. Select Enabled and then click OK.

For your changes to take effect, run the gpupdate /force command from the command prompt on the machine where Profile Management is installed. Log off from all sessions and then log back on. For details, see http://technet.microsoft.com/en-us/library/bb490983.aspx.

You can also choose to configure the Enable multi-session write-back for FSLogix Profile Container policy in Citrix Studio. To do so, complete the following steps:

  1. In the left pane of Citrix Studio, click Policies.
  2. In the Create Policy window, type the policy in the search box. For example, type “Enable multi-session write-back.”
  3. Click Select to open the Enable multi-session write-back for FSLogix Profile Container policy.
  4. Select Enabled and then click OK.

Write-back strategy

Profile Management uses the “last write wins” strategy to apply changes.

  • For file/folder creation and modification, it writes back changes by comparing the file/folder last write time.
  • For file/folder deletion and rename, it writes back changes by comparing the time stamps associated with the changes. Profile Management logs time stamps when changes occur.

Enable multi-session write-back for FSLogix Profile Container