Virtualization Articles and Resources

Using Invoke-NaVirtualDiskSpaceReclaim to reclaim space on running virtual machines

Toolkit 2.4 introduces Invoke-NaVirtualDiskSpaceReclaim to perform space reclamation on VHD and VHDX virtual disks.  The attached script uses Get-NaHyperV and Invoke-NaVirtualDiskSpaceReclaim along with cmdlets from the Hyper-V module to perform space reclamation.

Feel free to modify the script to suit your needs, just be sure to share any cool additions with the community!

Please Note:

All content posted on the NetApp Community is publicly searchable and viewable. Participation in the NetApp Community is voluntary.

In accordance with our Code of Conduct and Community Terms of Use, DO NOT post or attach the following:

  • Software files (compressed or uncompressed)
  • Files that require an End User License Agreement (EULA)
  • Confidential information
  • Personal data you do not want publicly available
  • Another’s personally identifiable information (PII)
  • Copyrighted materials without the permission of the copyright owner

Continued non-compliance may result in NetApp Community account restrictions or termination.

All Community Forums
Public