Get VMware Disk Usage Report for all VMs using PowerCLI.

Use this script to generate a comprehensive report of the disk space used and allocated to your virtual machines in VMware Vcenter using PowerCLI. Be sure to customize the variables to match your environment and always adjust the script to fit your specific needs.

The script will also work for multiple Vcenter connections at once, and combine them into one well formatted Excel file.

Example of how your report will look like after exporting.

This image has an empty alt attribute; its file name is image-1.png
All the numbers are displayed in GB.

Prerequisites:
Have excel installed on your machine.
Install-Module -Name VMware.PowerCLI -AllowClobber

If you have any questions / feedback or would like to correct me on any of the stuff above.
Please use the comment section or contact me directly using the blue button in the bottom right corner.

Leave a Comment