Problem:
Existing user VHD is too small or at maximum capacity, requiring expansion.
Possible Resolution(s):
While there are other 3rd party tools you can use Windows 10 to accomplish this goal with either PowerShell or DiskPart. Also, this should resize any VHD regardless of OS used to create the VHD. Furthermore, the VHD cannot be in use when modifying the size - e.g. mounted in a session.
**Note** - Hyper-V must be installed via "Programs and Features" to use Hyper-V PowerShell modules
PowerShell:
- Make sure the disk isn’t mounted in session
- Copy VHD locally to Windows 10 machine (command might work with network path...but does work locally.).
- Open powershell as admin
- Run this command (example for 5GB)
- Resize-VHD –Path C:\test.vhd –SizeBytes 5GB
- Mount Disk with Diskmgr and expand partition
- Copy back to original location (as same name).
DiskPart:
Launch Command Prompt and run the following commands:
- diskpart
- select vdisk file="\\PathToVhd\VirtualDisk.vhd"
- expand vdisk maximum=10240 <example increasing to 10GB using MB format>
- attach vdisk
- list volume
- select volume 2 <using "2" as an example, select the respective volume number of the vdisk>
- extend
- detach vdisk
Once a VHD is created with any part of ProfileUnity, it no longer cares about the size of the disk when mounting.
Product: ProfileUnity
Product Version: 6.5.+