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/Group | Permission |
Everyone | Full Control |
NTFS Permission
User Account/Group | Permission | Folder |
Administrator | Full Control | This folder, subfolders and files |
Authentication Users | Modify | This folder only |
Creator/Owner | Modify | Subfolder and Files only |
Domain Computers | Modify | This 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 :
<UvhdRoamingPolicy> <RoamingMode>2</RoamingMode> <Include> <Folder>AppData\Local\Microsoft\Outlook</Folder> </Include> </UvhdRoamingPolicy>
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
Testing:
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.
Hi
1. Is there an advantage of using this method over redirecting the OST to a network location?
2. Is the VHD file opened over the network OR does it come over to use VDI upon logon?
Thanks