Build a repeatable PowerCLI inventory report for VMs, ESXi hosts, datastores, snapshots, power state and resource allocation.
01

Connect to vCenter

Connect to the vCenter that owns the inventory and avoid running destructive commands while building an inventory report.

02

Collect VM inventory

Capture VM name, power state, host, cluster, datastore, guest OS and configured CPU and memory. This gives you a useful baseline without changing configuration.

03

Audit snapshots

List VMs with snapshots and include snapshot age and size where available. Old snapshots should be reviewed before datastore capacity becomes a problem.

04

Collect host and datastore data

Record ESXi version, connection state, CPU and memory capacity, datastore capacity and free space. Use this as a capacity and lifecycle baseline.

05

Export to CSV

Export separate datasets or a combined report so the information can be reviewed in Excel or consumed by another automation process.

06

Schedule the report

Once validated, run the inventory on a schedule and compare it with the previous baseline to identify configuration drift.

Useful commands

Get-VM | Select Name,PowerState,VMHost,NumCpu,MemoryGB
Get-VMHost | Select Name,Version,ConnectionState
Get-Datastore | Select Name,CapacityGB,FreeSpaceGB
Get-Snapshot -VM * | Select VM,Name,Created
Production workflow: capture the current state, test the dependency directly, make one controlled change, retest the original symptom and document the evidence.
07

Quick checklist

  • Connect to vCenter
  • Collect VM inventory
  • Audit snapshots
  • Collect host and datastore data
  • Export to CSV
  • Schedule the report
08

Primary reference

This TechRunbook guide is independently written and cross-checked against Broadcom VMware documentation. View the reference →

More VMware troubleshooting

Explore practical VMware, Windows Server, Hyper-V, Azure, PowerShell and MABS runbooks.

Browse all articles →

Explore more TechRunbook guides

Browse practical troubleshooting guides, PowerShell scripts, checklists and infrastructure resources for your environment.

Browse all articles →
TechRunbook · Practical infrastructure knowledge, ready when it matters.