Created
January 12, 2018 10:36
-
-
Save mczerniawski/dad726ac1ef101261146b69ed19763b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$VMName = 'SomeVM' | |
#Get VM disk path. Assuming there's only one VHD here | |
$VHDPath = Get-VMHardDiskDrive $VMName | Select-Object -ExpandProperty Path | |
#Verify VHD information, including current size | |
Get-VHD -Path $VHDPath | |
#Expand the disk | |
$newSize = 120GB | |
Resize-VHD -Path $VHDPath -SizeBytes $newSize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment