This article covers method to configure and use User Profile Disks on a server with Remote Desktop Services role running on Windows Server 2012 / 2012 R2 / 2016.
In a single RDS collection, there can exist only one VHDX profile file for one user. If a user connects to the resources from two different collections, a separate profile disk should be created for each of them.
Also note that the UPD drive is bound to the RDS server Windows OS version. You can’t transfer (use) an UPD user profile from an RDS server from one version of Windows Server to another.
To Setup & Enable RDS User Profile Disks:
1. Create a shared network location for the disks.
2. Launch SERVER MANAGER.
3. Expand REMOTE DESKTOP SERVICES > COLLECTIONS.
4. Click on your Collection.
5. Click TASKS > EDIT PROPERTIES (top right corner).
6. Click USER PROFILE DISKS (bottom of the menu on the left).
7. Click ENABLE USER PROFILE DISKS.
8. Set the location to what you created in step 1
9. Set the maximum size of those disks.
10. Scroll down and set what you want to have stored on those VHD's.
How to Resize User Profile Disks Using PowerShell ?
You can extend the virtual vhdx drive with the user's UPD profile using the PowerShell cmdlet Resize-VirtualDisk from the Hyper-V module:
Net use U: \\rdvh1\DemoLabOficeApps
Resize-VHD -Path u:\UVHD-<SID>.vhdx -SizeBytes 40GB
Net use U: /delete
If you want to run the Resize-VHD cmdlet from a desktop with Windows 10, you must install the feature Hyper-V -> Hyper-V Platform -> Hyper-V Services.