vCollect Storage By Partition for each vCenter


Many of projects I work on involve collecting an inventory of basic information about the #Disk_Path per VM in the environment per vCenter.

  1. VMware Code:
  2. GitHub Repository:



To make this inventory process less time consuming I began using #PowerShell scripts to collect the information I was interested. Over time these scripts got less messy and more useful, so now I want to share my current script.

This PowerShell script, #vCollect-Storage-ByPartition-ByvCenter.ps1, will collect Hardware Information from Hosts By #vCenter that includes:

  1. vCenter
  2. Cluster
  3. Host
  4. VM Name
  5. Disk PATH
  6. Capacity(GB)
  7. Free Space(GB)
  8. Free Space %



The information is output to a CSV file per server and CSV file for all vCenter.



Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.


  • Saddam  ZEMMALI ----- Initial work ----- My Project


Sign in to be able to add comments.

Comments 0