PowerShell Snippets
VMware
List all VM Disks
Get-VM * | Get-HardDisk | Sort-Object Parent,Name | Format-Table Parent,Name,CapacityGB,StorageFormat,Persistence -AutoSize
Lists all disks in VMware environment (after using Connect-VIServer) sorted by the VM and then the disk name. Table contains the VM name, the disk name, the disk capacity, the storage format (thin/thicklazy/thickeager), and whether or not it is included in snapshots.