Show the Provisioned space on each DataStore

First select the datastores you are interested and save the view:

$DS= Get-Datastore | ? {$_.name -match “YourDatastoreStringName”} | Get-View

Now check the expanded property to look for Uncommitted:

$DS | Select -ExpandProperty Summary | Select Name, @{N=”Provisioned”; E={[math]::round( ($_.Capacity – $_.FreeSpace + $_.Uncommitted)/1TB,2) }} | Sort-Object Provisioned | Format-Table -autosize

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s