Configuring the File Share for Storage of User Profile Disks:

Create a file share with the following NTFS and Share permissions:
In our case : \\fs01.uwsd.loc\UPD

Share Permission

User Account/GroupPermission
EveryoneFull Control

NTFS Permission

User Account/GroupPermissionFolder
AdministratorFull ControlThis folder, subfolders and files
Authentication UsersModifyThis folder only
Creator/OwnerModifySubfolder and Files only
Domain ComputersModifyThis folder, subfolders and files

Creation of the User Profile Disk Template

To create the UPD Template, you need to execute the following script in PowerShell:
(change the UNC path. The 10 stands for the size of the disk in GB, it’s thin provisioned)

(gwmi -ns root\cimv2\terminalservices -class win32_tssessiondirectory).createuserdisktemplate("\\%SERVERNAME%\%SHARE%",10)
# in our case:
(gwmi -ns root\cimv2\terminalservices -class win32_tssessiondirectory).createuserdisktemplate("\\fs01.uwsd.loc\UPD",10)

You now have a template disk \\fs01.uwsd.loc\UPD\UVHD-template.vhdx
Note: Check if you can see the NTFS permissions of the template disk. If not, recreate the disk

Configuration of User Profile Disk Environmental Settings

1) Download the ADMX files from here (UPD admx Files) and create a computer GPO
Computer Configuration → Administrative Templates → Microsoft User Profile Disks

2) Enable ‘Enable User Profile Disk’ with option 1

3) Enable “Location User Profile Disk” and set the UNC path of the created share:

4) Enable “Configuration XML File User Profile Disks”. The default setting: C: \Windows\RemotePackages\RDFArm\UvhdRoamingPolicy.xml is correct

Configuratie UvhdRoamingPolicy:

Create a file named: UvhdRoamingPolicy.xml on a central location: In our case \\uwsd.loc\NETLOGON\
In the XML file :


In the UvhdRoamingPolicy.xml are the folders you want to include. In our case only the Outlook folder

We now need to add the GPO to copy the file from the share to the VDI:
Computer Configuration → Preferences → Windows Settings → Files


Log in as a Test user on the VDI. When logged on, you should see the UPD:

Browse to %localappdata%\microsoft and you will see the Outlook icon:

To check the symbolink link:

In the VDI create a Outlook profile and turn on the “Use cached exchange mode” option.

Browse to: %LocalAppData%\Microsoft\Outlook and see the OST file. Logoff and logon to another VDI and see the OST file.

 8,880 total views,  6 views today