PowerShell Snippets


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.

code_snippets/powershell_snippets.txt · Last modified: 2014/06/17 18:10 by smark
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0