Optimize-VMDisk
1.0.1
This script was written as a way of easily performing the Optimize-VHD cmdlet that cleans up previously used space and defrags dynamic VHD and VHDX drives used by Hyper-V VMs. Because this operation requires that the VM be shutdown and the disk be mounted read only it can take some setup to get the disk in the correct state to optimize it. This script will shutdown th
This script was written as a way of easily performing the Optimize-VHD cmdlet that cleans up previously used space and defrags dynamic VHD and VHDX drives used by Hyper-V VMs. Because this operation requires that the VM be shutdown and the disk be mounted read only it can take some setup to get the disk in the correct state to optimize it. This script will shutdown the VM, mount the disk, optimize the disk, dismount the disk and then start the VM back up. It also provides a report showing the previous, current and amount recovered from the optimization process.
Show more
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2020 Dillon Childers. All rights reserved.
Package Details
FileList
- Optimize-VMDisk.nuspec
- Optimize-VMDisk.psd1
- Optimize-VMDisk.psm1
- README.md
Version History
Version | Downloads | Last updated |
---|---|---|
1.0.1 (current version) | 6,017 | 7/11/2020 |
1.0 | 441 | 4/11/2020 |