To enlarge the drive is very simple if you have Hyper-V installed. If you are running the VM on a virtual environment, it is not possible to have Hyper-V role installed.
To overcome this issue, you can simply add the Hyper-V role on Windows 8/8.1/10 workstations.
The Steps are as follows;
- The affected user have to be logged off so the .vhdx file is not mounted
- Locate the UPD share and translate the user’s SID to username so you’ll get the correct file Sidder Tool
- Take a backup (copy) of the file just in case…
- Resize the disk (either within Hyper-V Manager or with PowerShell / on the workstation)
- Mount the file and extend the disk within Disk Manager
The UPD can be easily resized using the PowerShell (This will enlarge to drive to 300GB)
PS C:> Resize-VHD –Path c:path-to-vhd-fileyour-VHD-file.vhd –SizeBytes 300GB
Then, simply attach the disk and extend as necessary