Deployment Guide: Citrix Profile Management - OneDrive Container (2024)

This document is intended for Citrix technical professionals, IT decision-makers, partners, and consultants who want to deploy Microsoft OneDrive Citrix Virtual Apps environment. The content is relevant for both on-premises and public cloud architectures. The reader should understand the Citrix app, desktop virtualization offerings, and Microsoft OneDrive.

The document provides best practices for deploying Microsoft OneDrive in a Citrix Virtual Apps environment. The goal is to overcome the challenges of delivering OneDrive in a Citrix environment and provide an optimal user experience.

Installing OneDrive in a Citrix virtual application environment, especially for multi-user, non-persistent scenarios, requires careful planning and configuration to ensure seamless user experiences.

There are several challenges when deploying OneDrive Citrix Virtual Apps environment, including:

  • Users who roam between multiple endpoints require their applications, files, and data to roam with them.
  • Users with multiple applications open from different sessions on hosts require access to the same storage repository.
  • Environments that have unique applications that store data in specific mapped drives, often without user intervention.
  • Microsoft OneDrive syncs data from the cloud upon user login, which causes challenges in a non-persistent environment where data is deleted after user logoff and can consume a significant amount of storage in the data center where the user’s sessions are hosted.

Solving these challenges requires careful planning when deploying Microsoft OneDrive. This deployment guide provides the reader with the recommended installation, configuration, and optimizations to resolve the challenges of deploying OneDrive in a Citrix Virtual Apps environment with the Citrix Profile Management OneDrive Container.

Conceptual Architecture

Deployment Guide: Citrix Profile Management - OneDrive Container (1)

Citrix Profile Management is a profile solution for Citrix Virtual Apps servers installed on each computer where user profiles must be managed. Citrix Profile Management addresses user profile deficiencies in environments where simultaneous domain logins by the same user introduce complexities and consistency issues to the profile and optimizes profiles efficiently and reliably. Citrix Profile Management is a crucial component of a well-optimized Citrix Virtual Apps environment. Please review the Citrix Profile Management Quick Start Guide for additional information on deploying the solution. Refer to Profile Management architecturefor more details on the folder structure of the user store and the central location for Citrix user profiles.

Deployment Guide: Citrix Profile Management - OneDrive Container (2)

The Citrix Profile Management Profile Container is a VHDX-based profile solution that allows you to store the profile folders of your choice or the entire user profile on a VHDX profile disk. A VHDX file is created per user on your profile storage share and mounted to the VDA session(s) when the users log on, resolving any issues with slow logons and improving the logon experience. Once the users have logged into their virtual application, their profile folders are available immediately.

Deployment Guide: Citrix Profile Management - OneDrive Container (3)

The Citrix Profile Management OneDrive container is a VHDX-based folder roaming solution. Profile Management creates a VHDX file per user on a file share and stores the users’ OneDrive folders into the VHDX files. The VHDX files are attached when users log on and detached when users log off.

With Citrix Profile Management OneDrive Containers, end-user OneDrive folders roam with users to allow access to the same OneDrive folders on any computer or virtual session. These containers are VHDX-based and are created per user within a file share. They are then mounted to the virtual session when users log on and detached when users log off. The VHDX files for the OneDrive container are stored on the same storage server as the Citrix Profile Management user store.

The VHDX files for Citrix Profile Management, such as the OneDrive container and profile container, can be stored in different locations in a hybrid solution with a container plus a file-based profile.

In many cases, end users roam between multiple endpoints in these settings, requiring their applications, files, and data to roam with them. This is seen a lot in healthcare settings that deliver Citrix Virtual Applications. Additionally, these users may have multiple applications open from different sessions on different hosts, all requiring access to the same storage repository.

Deployment Guide: Citrix Profile Management - OneDrive Container (4)

Citrix Profile Management is designed to resolve the roaming and multiple-session scenario. The above diagram depicts a scenario where the user has launched multiple virtual applications from multiple Citrix Virtual Delivery Agents (VDAs). The user then logs out of two applications and moves to a second device, where they log onto the open application session. Once they log off from the remaining application setting, Citrix Profile Management writes back on the specific settings that were changed during the session while letting other unchanged settings remain untouched.

OneDrive Container for roaming and multiple sessions

Introducing OneDrive into an environment where roaming or multiple-session Citrix Virtual Apps environments are common also brings many challenges. Challenges include the OneDrive sync app needing to be supported when using file-based profile roaming and previously requiring FSLogix to be supported. However, Citrix Profile Management v2311 and the Citrix OneDrive Container resolve these challenges and allow users to roam and open multiple virtual application sessions when using OneDrive.

Note:

Many organizations require LTSR infrastructure and Virtual Delivery Agents in their environments. If so, Citrix Virtual Apps and Desktops LTSR v2402 includes the Citrix Profile Management OneDrive Container. Alternatively, customers could remain on LTSR v2203 for VDAs and use newer Citrix Profile Management versions, including the OneDrive Container.

Installing OneDrive within a Citrix Virtual Apps environment takes careful consideration. The typical OneDrive installation is installed into each user's profile, which in a Citrix Virtual Apps non-persistent environment will cause issues. OneDrive provides a per-machine install option for this type of environment, which installs OneDrive so that each profile logged in will use the same OneDrive.exe binary. This is recommended when installing OneDrive into a Citrix Virtual Apps non-persistent environment. The following recommendations should be considered when deploying OneDrive in a Citrix Virtual Apps environment.

  1. Ensure that the following prerequisites and requirements for OneDrive and Citrix are met.

a. Citrix Virtual Apps and Desktops 2311 or later, or Citrix DaaS for the Citrix management plane.

b. Windows Server 2019 and above for the VDA operating system.

c. Citrix Profile Management 2311 or later

e. SMB File share for the VHDX containers

Shellbridge is enabled by default in Citrix VDA 2212 and later versions. If using Citrix VDA 2203, Shellbridge must be enabled manually by adding the following Registry key:

'HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\Citrix Virtual Desktop Agent`

'Name: Shellbridge`

`Type: REG_DWORD`

`Value: 1`

  1. Install OneDrive once at the machine level, making it available to all users who access the virtual environment. This method can save storage space but may result in a less personalized experience. For more information on deploying OneDrive per machine level, refer to Microsoft’s OneDrive per-machine installation.
  2. OneDrive must be added to the following registry location: HKLM\software\Microsoft\Windows\CurrentVersion. The following command will create the key required for the per-machine installation to run correctly.

`REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v OneDrive /t REG_SZ /d "\"C:\Program Files\Microsoft OneDrive\OneDrive.exe\" /background"`

  1. Install the OneDrive sync client on the base image of your virtual machines or in the shared application layer.
    1. Configure OneDrive settings to match your deployment strategy (shared).
  2. Create a Group Policy Object (GPO) settings for the following:
    1. OneDrive Files On-Demand: This setting prevents files from being downloaded into a user's local cache until the user accesses them.
    2. Allow Storage Sense: This setting will remove local copies of files that have not been accessed for a defined period and help control the size of the OneDrive cache.

Integrating Citrix Profile Management with OneDrive requires careful planning and consideration, as several configurations are necessary to ensure optimal performance and user experience. With the Citrix Profile Management OneDrive container enabled in CPM 2311, the OneDrive container can be accessed via concurrent sessions by default. Citrix Profile Management file-based users must allow the OneDrive container to roam the OneDrive data. This supports simultaneous access to OneDrive. OneDrive data can be roamed for full container users with the profile container, but it does not support concurrent access to the OneDrive data. Full container users must specifically enable OneDrive container for OneDrive data concurrent access.

  1. Enable Citrix Profile Management.

Deployment Guide: Citrix Profile Management - OneDrive Container (5)

  1. Enable and set the path to the Profile Management User Store.

Deployment Guide: Citrix Profile Management - OneDrive Container (6)

  1. When using Citrix Profile Management and OneDrive, administrators need to Enable the OneDrive Container so that Citrix Profile Management creates a VHDX file per user on a file share and stores the users’ OneDrive folders into the VHDX files. The VHDX files are attached when users log on and detached when users log off.

Deployment Guide: Citrix Profile Management - OneDrive Container (7)

  1. Enable the OneDrive container—list of OneDrive folders policy and add your OneDrive folders as a path relative to the user profile, then click Save.

Deployment Guide: Citrix Profile Management - OneDrive Container (8)

  1. It is recommended that VHDX disks be automatically reattached in sessions be enabled when deploying containers in the Citrix Profile Management solution (profile container, OneDrive container, Outlook container).

Deployment Guide: Citrix Profile Management - OneDrive Container (9)

  1. Once the Citrix Profile Management OneDrive container is enabled and users are signed into OneDrive, no other sign-in to OneDrive is required if users sign in to a new workstation and launch a new one or connect to a disconnected session. Any files stored In OneDrive will also be available to them immediately as they are not downloaded from the cloud but rather synced between the virtual app server they are connected to and the local area network (LAN). Lastly, offline access is still available for kiosks that do not have internet access to their files.

Each OneDrive user is granted 1 TB of storage space for their personal library. Synchronizing the user’s entire library across multiple devices consumes significant storage. Citrix Profile Management VHDX containers are created in the user store per user, ensuring a single copy of the OneDrive VHDX or profile container VHDX, regardless of the number of user sessions. The VHDX base disk and the difference disk are in the user store. No matter how large a user's OneDrive folder is, it won't consume the OS disk space in an MCS scenario or the write cache disk space in a PVS scenario. Additionally, the storage consumed on the VDAs is minimal as the OneDrive VHDX containers are remote-mounted, preventing the entire user library from copying across the network during the login process.

  • If Citrix Profile Containers are used, the default storage size of the VHDX file is 50GB per user. However, if required, you can use the Default capacity of the VHD containers policy to set a smaller default for profile size.

Deployment Guide: Citrix Profile Management - OneDrive Container (10)

  • Citrix Profile container VHDX files can auto-compact upon user logoff to save space for central or cloud storage locations. Certain conditions must be met for the compaction to take effect.

Deployment Guide: Citrix Profile Management - OneDrive Container (11)

  • Lastly, to help with scaling the environment, you can limit the ability for OneDrive to sync only when files are required by enabling the Use OneDrive Files On-Demand Group Policy setting. This setting allows OneDrive to download files when they are needed. Users accessing published applications throughout the day typically only require access to a few files within their OneDrive container. Enabling this setting ensures that the OneDrive sync client does not sync unneeded files to the container.

Deployment Guide: Citrix Profile Management - OneDrive Container (12)

Tips and Optimizations

Optimizing the environment to make the OneDrive user experience consistent with a physical desktop is essential to healthcare customers. Several settings can be configured to adjust OneDrive settings to improve performance and reduce network traffic.

  • Disable the OneDrive Update service on the master image. The OneDrive Update service keeps the application updated in the per-machine installation of OneDrive. It is recommended that you disable this service in non-persistent image workloads.
  • Disable the OneDrive per machine Standalone Update and Reporting scheduled tasks. The Standalone Update scheduled task updates the OneDrive application service. The Reporting scheduled task audits every file OneDrive and provides up-to-date reports on all user file activity.
  • Limit selective sync to essential folders. Syncing only essential OneDrive folders in the environment helps optimize performance and enhances the end-user experience in the Citrix environment.
  • Setting upload and download limits. Setting limits to uploads and downloads for OneDrive can assist in avoiding overloading the virtual infrastructure.
  • Enable VHD disk compaction. The Citrix Profile Management setting automatically compacts the VHDX file on user logoff when the file exceeds a specified value or the number of logoffs reaches a specified value.
  • Replicate profile containers. Replicating user profile containers provides profile redundancy for user logins but not for in-session failovers. However, replicating the containers increases system I/O and may prolong logoffs.
  • Enable Automatically reattach VHDX disks in sessions. This policy enables a high level of stability if a session failover occurs. The connection to the profile container is re-established to the profile store, and the VHDX is automatically re-attached.
  • By default, with Local Caching, the entire profile is cached locally during log-in. To Reduce Login times, enable Profile Streaming, which caches profile folders on demand after login.
  • Exclusive Access. VHD containers allow concurrent access by default. If needed, you can disable concurrent access for the profile and OneDrive.

Deploying Microsoft OneDrive in a Citrix Virtual Apps environment to be used within healthcare settings comes with many challenges. Having the right strategy and careful planning and execution will allow healthcare organizations to deploy OneDrive successfully within a Citrix Virtual Apps environment and overcome the difficulties of roaming users, multiple sessions, and cloud synchronization of files. Optimizing the environment will provide a better overall end-user experience within the environment and applications.

Citrix Profile Containers Deployment Guide

Deployment Guide: Citrix Profile Management - OneDrive Container (2024)

FAQs

How to configure OneDrive in Citrix? ›

How to set up OneDrive
  1. Install OneDrive Sync app per machine. See Install the sync app per-machine.
  2. Install the latest version of FSLogix. See Install FSLogix Applications. ...
  3. Add OneDrive to HKLM\Software\Microsoft\Windows\CurrentVersion\ by using the following command: ...
  4. Silently configure user accounts.
Mar 5, 2024

Where to install Citrix profile Management? ›

In addition to DLLs and other files, the installer creates these files in the installation location (by default, C:\Program Files\Citrix\User Profile Manager).

What are the main steps involved in configuring Citrix user profile Management using group policy? ›

To enable Profile Management using Group Policy, follow these steps:
  • Open the Group Policy Management Editor.
  • Under Computer Configuration > Policies > Administrative Templates: Policy definitions (ADMX files) > Citrix Components > Profile Management, double-click the Enable Profile management policy.
  • Select Enabled.
Jan 6, 2023

How do I integrate OneDrive? ›

To open and save files to Microsoft OneDrive from Excel, PowerPoint, or Word, you need to add OneDrive as a connected service.
  1. Open your Microsoft 365 app.
  2. Go to File then Account.
  3. Select Add a service then Storage.
  4. Choose OneDrive.
  5. Complete the sign-in steps for the account you are trying to add.

How do I set up OneDrive settings? ›

To open the OneDrive mobile app settings:
  1. Select the Me icon. (Android) or your Profile picture (iOS).
  2. Tap Settings and choose from: Accounts (you can only have one Personal account active). Options includes turning camera roll on or off, notification settings, device security, and Personal Vault settings.

Where are user profiles stored in Citrix? ›

User profiles are fetched from the remote user store to the local computer on logon and written back on logoff. Container-based. User profiles are stored in profile containers. Those containers are attached on logon and detached on logoff.

How do I deploy a workspace in Citrix? ›

Right-click Citrix Workspace app in the Configuration Manager console select Deploy. The Deploy Software wizard appears. Select Browse against Collection (can be Device Collection or User Collection) where the application is to be deployed and click Next.

How do I recreate a user profile in Citrix? ›

Click Reset Profile. Instruct the user to log off from all sessions. Instruct the user to log back on. The folders and files that were saved from the user's profile are copied to the new profile.

How does Citrix profile management work? ›

At interim stages and at logoff, registry changes and the files and folders in the profile are saved to the user store for each user. If, as is common, a file exists, it is overwritten if it has an earlier time stamp. At logon, users' registry entries and files are copied from the user store.

What is Citrix user profile management? ›

Profile management ensures that the user's personal settings are applied to the user's virtual desktop and applications, regardless of the location and end point device. Profile Management can be installed together when you install the XD/XA layout.

How do I find my Citrix Profile management version? ›

If Profile Management is installed as a part of any product installation (for example, XenApp/XenDeskto) then go to %ProgramFiles%\Citrix\User Profile Manager\UserProfileManager.exe – Right click to open Properties of exe to find the product version.

Where are the ADMX files in Citrix? ›

For example: <installation directory>\Online Plugin\Configuration. If Citrix Workspace app is installed without the VDA, the admx/adml files are typically found in the C:\Program Files\Citrix\ICA Client\Configuration directory.

What are the steps in order to deploy software using group policies? ›

Click the Group Policy tab, click the policy that you want, and then click Edit. Under User Configuration, expand Software Settings. Right-click Software installation, point to New, and then click Package. In the Open dialog box, type the full UNC path of the shared installer package that you want.

What is the difference between folder redirection and roaming profiles? ›

Roaming User Profiles is used to redirect a user profile to a network location, whereas Folder Redirection enables users and administrators to redirect the path of a known folder to a new location, manually or by using Group Policy. So, the latter may allow for more granularity.

How do I connect OneDrive to Remote Desktop? ›

Procedure
  1. Connect to windows.math.uwaterloo.ca.
  2. Open a command prompt (cmd.exe) and enter these commands. ...
  3. Ensure the location for the local cache is C:\Users\<WatIAM ID>\AppData\Local.
  4. Right click on the OneDrive icon in the notification area (bottom right)
  5. Select Settings.

How to open OneDrive in Virtual Desktop? ›

Prerequisites
  1. Since this is a preview feature you need a preview build of Windows 11. ...
  2. You need to install OneDrive per machine on your session hosts.
  3. Configure OneDrive to launch with a remote app.
  4. You need your host pool to be running in validation environment.
  5. You need to install the latest version of FSLogix.
Oct 27, 2023

How do I sync my company with OneDrive? ›

By syncing your OneDrive for Business to your PC, documents that are currently stored only in your OneDrive for Business will also be available in your File Explorer on your PC. In webmail, click the app launcher (square icon below) and then click OneDrive. Click Sync. Click Sync Now.

Top Articles
Latest Posts
Article information

Author: Kareem Mueller DO

Last Updated:

Views: 6282

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Kareem Mueller DO

Birthday: 1997-01-04

Address: Apt. 156 12935 Runolfsdottir Mission, Greenfort, MN 74384-6749

Phone: +16704982844747

Job: Corporate Administration Planner

Hobby: Mountain biking, Jewelry making, Stone skipping, Lacemaking, Knife making, Scrapbooking, Letterboxing

Introduction: My name is Kareem Mueller DO, I am a vivacious, super, thoughtful, excited, handsome, beautiful, combative person who loves writing and wants to share my knowledge and understanding with you.