Get VMware Disk Usage Report for all VMs using PowerCLI.

This is a quick and useful script for generating a full report of all disk space used and provisioned to your virtual machines in VMware Vcenter using PowerCLI, remember to change the variables to match your environment and be sure to always adapt the script to your 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.

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.

Consider donating a few bucks if this was valuable to you.
Thank you!

Leave a Comment