Environment Manager

Home 

This page refers to an older version of the product.
View the current version of the User Help.

In this section:

Cache Roaming for Virtual Sessions

Cache Roaming functionality introduces capabilities to roam user application caches between sessions in non-persistent environments. The Virtual Hard Disk (VHD) container is attached to the user's virtual desktop or session allowing the necessary folders within the user profiles to be redirected here. The feature is suitable for supported VDI infrastructures in virtual desktop environments, including XenDesktop, or Remote Desktop Session Host (RDSH) scenarios such as XenApp. Applications do not require any reconfiguration and no changes are made to user profiles.

The feature uses two actions to achieve this:

  • Manage VHD - Mount an existing VHD or create and mount a new VHD.
  • Cache Roaming - Redirect a user profile cache to the VHD.

The two actions can be used independently but most commonly, they will be used together - roaming the VHD specified or created using the Manage VHD action, to the location defined in the Cache Roaming action. The actions are available on Pre-Desktop and Desktop Created triggers, and automatically detach on logoff and network disconnect. This allows users to reconnect when they log on to another endpoint or start a new VDI session.

One of the main use cases for this functionality is the roaming of Outlook OST Cache files, providing users instant access to their Office 365 mailboxes. Outlook Cached Exchange requires large OST files to remain resident within a user’s profile. In Non-Persistent VDI and RDSH environments, the profile is typically rebuilt at logon, resulting in the loss of user's OST files. Consequently, at the next logon, Outlook has limited functionality while it downloads and rebuilds the OST cache, which can be multiple gigabytes in size. Using this feature means that users with non-persistent VDI setups do not need to be in ‘Exchange Online Mode’ - they can be in ‘Cached Exchange Mode’, persisting their entire mailbox between sessions. This provides a much better user experience and can make users instantly productive following migration to Windows 10 or Office 365 migration.

In addition to Outlook OST Cache files, the Manage VHD action includes built-in settings for roaming OneNote, OneDrive, Windows and Outlook Search, and Skype for Business 2016/365 Global Address List caches. Additionally, you can also create your own custom redirections. Example locations that would be potential candidates are areas within the user profile that are too large for synchronization via Environment Manager Personalization, but are key to providing an optimal user experience.

OneDrive Cache Roaming

To provide a seamless user experience without major impact to system performance, Environment Manager provides a policy method of persisting user profile settings across virtual sessions for OneDrive. The template used for OneDrive cache roaming utilizes a filesystem redirection driver and requires slightly different configuration to the other templates provided. Once configured, at user logon the VHD is mounted (or created if it does not already exist). The user's OneDrive cache is redirected to a sub folder at the root directory of the VHD. When the user logs off from their sessions the VHD is automatically detached and re-mounted at the next logon.

Windows and Outlook Search

Environment Manager supports roaming both the Windows and Outlook search indexes via built-in cache templates:

Outlook Search template

The Outlook Search template enables a per-user profile of the Outlook search index to be roamed between non-persistent sessions. The template delivers real improvements for users, avoiding the need to download and rebuild the search index at every user logon.

Note, if a mandatory user requires a persistent Outlook search index cache they will need to select both the Outlook OST and the Outlook Search cache templates.

Windows and Outlook Search template (single user workstation)

The Windows and Outlook Search template enables the roaming of system-wide Windows Search database between sessions on a single user workstation. Using the template, the search index is delivered from a locally stored directory.
Note, there is no support for the template on concurrent sessions on Windows Server.

The use of both the search index cache templates together is not supported.

Concurrent users

Environment Manager supports concurrent user access for Office 365 VHD containers. This enables a user within a non-persistent Windows environment to have multiple sessions running at the same time, for example to access Outlook from multiple virtual sessions.

The Windows Office 365 environment allows multiple concurrent sessions but only one connection to the cloud based storage. To enable multiple concurrent sessions, Environment Manager creates a VHD for each device logon. Each VHD will synchronize with the cloud based storage, ensuring that files are always updated. When a user logs out of a session, the VHD is detached, unlocked and becomes available for another user session. A user can create many concurrent sessions.

At logoff from concurrent sessions, a maximum of 5 VHD files are retained per user. This ensures that users have a pool of synchronized VHDs available to re-attach and from which to restore the Office 365 cache.

VHD concurrent users functionality is enabled by default. It can be disabled via a simple checkbox.
Note that when VHD concurrency is disabled the user may experience issues if their VHD becomes locked or they are unable to attach to it. Under these circumstances Office 365 applications may not work as expected and user settings may not persist between sessions.

Cache roaming is designed to work only when making use of a VHD file action - i.e. redirecting your caches to the mounted VHD rather than directly to a network share WITHOUT using the VHD.

Manage VHD

  1. Select or add a node on the Pre-Desktop or Desktop Created triggers.
  2. From the Actions ribbon, select VHD > Manage VHD.

    The Manage VHD dialog displays.

  3. Complete the fields to set up the action:

    Setting Properties
    VHD File

    Select or enter the path and filename of the VHD to be mounted. If the VHD does not exist on an endpoint and the Automatically create VHD if it does not exist option is selected, a VHD will be created in accordance with the settings configured in this dialog.

    VHDs should not be created on pre-existing mapped drives.

    The VHD File location will typically be a UNC path to a folder that the user already has full access to, for example a User Home Folder location.

    For advice on how to configure permissions on the VHD Network folder, we recommend customers review Microsoft best practice for Home Folders as a baseline here https://support.microsoft.com/en-us/help/274443/

    This ensures that Domain Administrators and the Current User have Full Control on the VHD file, with the User being the Owner of the Parent Folder.

    VHD Root Folder

    The root directory of where the VHD will be mounted.
    The folder will contain the VHD contents such as Outlook PST files or the OneDrive cache for example, and can be accessed like any other folder. This enables redirected folders to be managed in a common location.

    This folder must be granted specific permissions so that the VHD can be written to. Required permissions are detailed below.

    Automatically create VHD if it does not exist If the specified VHD does not exist on an endpoint, one will be created with the settings defined in this dialog.

    Enable VHD concurrency

    By default VHD concurrency is enabled and this checkbox is selected.

    Clear this checkbox to disable VHD concurrency.

    VHD Type Fixed - The size of the disc is determined on creation - it will always be the size set in the Max Size field. This offers better performance than Expandable VHDs but can have a negative impact on logon times.

    Expandable - The size of the disc is variable and will grow to the maximum size as data is added.

    Max Size

    The maximum size of the VHD between 150MB and 2TB.

    Even though each user is provided with 1TB of free OneDrive for Business storage with Office 365, it is not necessary to set the Max Size of the VHD to 1TB as it is unlikely this full allocation of disk space will ever be used. However, the Max Size can be configured on a contextual basis, using Policy Conditions, to meet individual user needs.

VHD parent folder permissions

Permissions are applied via the Advanced Security Settings dialog within Windows.

The following permissions for the parent folder are recommended:

Principal Access

Applies to

Creator Owner Full control

Subfolders and files only

System Full control

This folder, subfolders and files

Domain Admins Full control

This folder, subfolders and files

Everyone* Create folder/append data

This folder only

Everyone* List folder/read data

This folder only

Everyone* Read attributes

This folder only

Everyone*

Traverse folder/execute file

This folder only

* Everyone can be replaced with domain users, authenticated users, or a custom security group.

VHD username folders

It is recommended that a username sub-folder is created under the VHD share location.

Slow logins can result if VHD files are created in a common shared folder for all users (for example, at \\server\share$\%username%.vhd). The delay is caused by the time taken to set permissions on the parent folder for multiple users and to attach the VHD file.

To avoid this delay, best practice is to create the VHD file in a separate folder for each user. Example: \\server\share$\%username%\%username%.vhd.

Cache Roaming

  1. Select or add a node on the Pre-Desktop or Desktop Created triggers.
  2. From the Actions ribbon, select VHD > Cache Roaming.

    The Cache Roaming dialog displays.

  3. Complete the fields to set up the action:

    Setting

    Properties

    Cache Template Select a template from the drop-down:
    • Custom
    • OneDrive Cache
    • OneNote Cache
    • Outlook OST Cache
    • Skype for Business 2016/365 Global Address List
    • Outlook Search Cache
    • Windows and Outlook Search Cache

    Selecting one of the well-known application caches automatically populates the Application Name and, where applicable, the Original Location fields, though these can be overwritten if required.

    To create custom cache settings, leave the default option as Custom and complete the remaining fields as required.

    In addition to roaming the Outlook OST, Skype and OneNote caches as mentioned above, for full Office user roaming you will need to persist additional Registry and File locations. Ivanti provides an Office 2016/365 template with our Personalization Server which is available on the Ivanti Community here: DOC-46793

    Environment Manager Policy only customers can configure File/Registry Actions to persist the required settings within the template to roam the required Office User settings.

    Application Name This is the name for the cache action that will display in the node work area. This value is automatically populated when a specific template is applied but remains editable when the Custom template is selected.
    Original Location

    This field is not applicable to the OneDrive, Windows or Outlook cache templates.

    The source folder of the cache files to be roamed. This is automatically populated if you select a template from the drop-down but can be overwritten if required.

    This folder should not be personalized as it will cause issues when personalization attempts to capture the folder at user log off.

    Local, Network (including UNC paths) and DFS paths can be used and environment and session variables are supported.

    For this action to be successful, the specified folder must not already be present within the profile.
    Where the folder is present, additional actions are required within the configuration. For example, if data is required post production in a migration scenario, actions to either copy the data and delete the folder are required. Alternatively, remove the folder, allowing the action to complete successfully.

    Tenant Name

    This field applies only to the OneDrive Cache template.

    Enter the tenant name for your OneDrive implementation. Environment Manager appends 'OneDrive' to the name entered to form the required folder.

    Redirect Location The folder to which the original cache location will be redirected to. If using with a VHD manage action, this should be a path to a sub-folder specified as the VHD Root Folder.

    Local, Network (including UNC paths) and DFS paths can be used and environment and session variables are supported.

    Cache Type

    This field is relevant to the Custom cache template settings only.

    Select the Cache Type from the drop-down list.

     

    Depending upon the cache template selected, additional options are displayed.

    Delete redirection source if it exists

    This option does not apply to Windows and Outlook Search cache templates.
    By default this option is selected.
    If this option is unchecked and data exists in the redirection source the cache roaming will fail. As an administrator, unchecking this option could provide protection against the loss of existing data.

    Automatically roam OneDrive credentials

    This option applies only to the OneDrive cache template. By default this option is selected.
    If this option is not selected users will need to roam credentials via Personalization (by selecting the Security WSG) - or log in to OneDrive each time they log on to a machine.

Additional information - users of configuration merging or mid-session configuration changes

The following information applies to users of VHD Cache Roaming actions and either of the following features:

Configuration merging

Mid-session configuration changes

If you utilize VHD cache roaming actions and configuration merging or applying mid-session configuration changes immediately (via the Advance Configuration Settings dialog), you will need to set the PreventUnapplyOnConfigChange engineering key in the registry. This action is required to enable VHD cache roaming to work correctly following a configuration merge.

The following registry key (and value) will need to be set on the endpoint to a value of 1:

HKLM\Software\AppSense\Environment Manager

Name Type Possible Values Details
PreventUnapplyOnConfigChange DWORD 0 or 1 The default value is 0 (actions are unapplied (reverted) on a configuration change)

Related topics

Action_Management.htm

FTA Roaming

Configuration Endpoint Merging

Advanced Configuration Settings


This page refers to an older version of the product.
View the current version of the User Help.