Forum Discussion
Increase the size of user profile disk in my remote desktop server
- Mar 11, 2025
hi szuguan,
What you need to do is easy, you launch dispart, you execute the commande "select vdisk file=<VHDX>" and you execute the commande "expand vdisk maximum=<New size disk>" and after that you attach the disk in disk manager and extend the disk.
Example:
Hi, to increase the 5GB “User Profile Disks” limit on a Windows 2016 RDS server (when the GUI option is grayed out), follow these steps:
Change the global limit (if possible):
Use PowerShell:
Set-RDSessionCollectionConfiguration -CollectionName "YourCollectionName" -SizeInMB <NewSize>
This updates the limit for new profiles, but existing profiles remain at the old size unless you manually expand them.
Manually expand existing .vhdx files:
Ensure the user is logged off.
Locate the .vhdx file (e.g., UVHD-S-1-5-21-xxxx.vhdx) in the configured profile path.
Mount the file in Disk Management (Action > Attach VHD) or via diskpart.
Extend the volume inside the .vhdx (in Disk Management, use “Extend Volume” or in diskpart use:
select vdisk file="C:\Path\To\File.vhdx"
attach vdisk
select volume <Number>
extend
Dismount (detach) the VHD.
When the user logs on again, they will see the increased space.
Increase the limit for a single user only:
Simply expand that user’s .vhdx file manually, as above, without changing the global setting.
Data loss:
If you correctly extend the volume, no data is lost. You’re just adding more space.
Additional tips:
If needed, temporarily disable “User Profile Disks” in the Collection to avoid conflicts.
Always have a backup of your .vhdx files before making changes.
- szuguanMar 06, 2025Copper Contributor
Hi Micheleariis,
Thanks for your answer and guide. I have tried but am stuck at the "Manually expand existing .vhdx files:" I am sure the user is signed out. First, I successfully "attach vhd" in disk management, I can see an additional volume there, and a drive letter "F" is assigned to it. I right-click the volume and see the "Extend Volume" is grayed out, nothing I can do here.
Secondly, since I have no luck in disk management so I go to use diskpart. The "select vdisk" and "attach vdisk" executed without problem, but when I do the "list volume", I can not find the volume I want (I've checked many times).
Please advise, thank you.
- L_Youtell_974Mar 11, 2025Iron Contributor
hi szuguan,
What you need to do is easy, you launch dispart, you execute the commande "select vdisk file=<VHDX>" and you execute the commande "expand vdisk maximum=<New size disk>" and after that you attach the disk in disk manager and extend the disk.
Example:- szuguanMar 13, 2025Copper Contributor
Hi L_Youtell_974,
This work! Thanks for your guide and answer. ;D