More

VMware PowerCLI – Get all thick provisioned disks

By Antti Hurme 18/01/2013 2 Comments 0 Min Read

Found this powershell script on Enterpriseadmins.org site which lists all Thick provisioned disks, and thought id share it here as well.

get-vm | get-view | %{
 $name = $_.name
 $_.Config.Hardware.Device | where {$_.GetType().Name -eq "VirtualDisk"} | %{
  if(!$_.Backing.ThinProvisioned){ 
   "$name has a thick provisioned disk" 
  }
 }
}

 

Written By

Who am I? | Linkedin

View All Articles
R
V
2 Comments
  1. ivan says:

    Thank you very much, your script helped

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.

This site uses Akismet to reduce spam. Learn how your comment data is processed.