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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store