PowerCLI Snippet-Find Thick Provisioned Disks

A quick PowerCLI one liner to locate VMs with thick-provisioned disks attached.

Get-VM |
  Select Name, @{Name="StorageFormat";
                 Expression={( Get-HardDisk -VM $_ ).StorageFormat}} |
  Where {$_.StorageFormat -Contains "Thick"}

Advert:

Leave a Reply

Your email address will not be published. Required fields are marked *