Resize-VHD
CautionGrow virtual disks
Resize-VHD <path> -SizeBytes 200GB
Grows the VHDX, then expand the partition inside the guest. VHDX grows online; shrinking needs guest-side prep first.
Examples
Resize-VHD D:\VMs\web01.vhdx -SizeBytes 200GBGrow to 200 GB
Syntax
Resize-VHD <vhdx> -SizeBytes N(拡張) → ゲスト内でパーティション拡張
Before you run it
Shrinking carelessly loses data.
Related commands
- Get-VHD / Optimize-VHDInspect/optimize VHDs
- lvextendExtend logical volumes
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store