1

In order to reduce RDS user's vhdx (User Profile Disks) size, I wanted to test disk2vhd to rebuild a vhdx from mounted vhdx. But it doesn't work on virtual drive.

Optimize-VHD is not suitable for this job because it's not a Hyper-V env.

So, is there a way to reduce users's vhdx?

Thanks.

Alysko
  • 121
  • 3

1 Answers1

1

If you don't want to install Hyper-V management tool to use Optimize-VHD, then you can use compact vdisk in diskpart: compact vdisk | Microsoft Learn.

diskpart
select vdisk file=<full path>
compact vdisk
Swisstone
  • 6,725
  • 7
  • 22
  • 32