Get Thick Provisioned Disks

Another interesting PowerCLI script from today.  My proof of concept environment uses thin provisioned disks — this lets us have a lot more test machines than we really have disk space.   The other day we ran out of space — a new admin had been creating test machines for a project using oversized disks and thick-provisioning.  A coworker actually came up with this script to help find those disks so we could turn thin provisioning back on:

get-vm | get-view | %{
$name = $
$_.Config.Hardware.Device | where {$_.GetType().Name -eq "VirtualDisk"} |  %{
"$name has a thick provisioned disk"
This entry was posted in Scripting, Virtualization. Bookmark the permalink.

One Response to Get Thick Provisioned Disks

  1. Pingback: VMware PowerCLI – Get all thick provisioned disks | Null Byte

Leave a Reply

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


Notify me of followup comments via e-mail. You can also subscribe without commenting.