Prerequisites #
- Ensure you have administrator access to vSphere/ESXi.
- Take a backup or snapshot of the VM before making changes.
- Verify that there is enough free space on the datastore.
- Make sure the user is not logged in.
- Copy the
UserProfile.vhdx
as a backup.
Detach and Resize the VHD/VHDX #
- Ensure the user is logged off from the RDP session.
- Copy the UserProfile.vhdx as a backup.
- On an admin PC or the RDS server, open Disk Management (diskmgmt.msc).
- Click Action > Attach VHD, then browse to the VHD/VHDX file.
- Once attached, right-click the partition inside the VHD/VHDX and choose Extend Volume.
- Extend the partition to the desired size.
- Right-click the VHD/VHDX in Disk Management and choose Detach VHD.
Verify and Reconnect the User #
- nsure the user can log back in.
- Confirm the new disk size using Win + R > diskmgmt.msc
Summary #
- Find name of UVHD from registry (Computer\HKEY_USERS)
- run diskpart
- select VDISK (C:\Users\s123232.uvhd)
- expand vdisk maximum=122880 (For 120GB)
- attach vdisk
- Use Disk management to expand disk
- detach disk
- exit