The next PowerCLI script will give you the datastore name, capacity in GB and free space in GB for all datastores.
Get-Datastore | `
Sort-Object -Property Name | ForEach-Object {
$Datastore = $_
$Report = "" | Select-Object -Property Datastore,CapacityGB,FreeSpaceGB
$Report.Datastore = $Datastore.Name
$Report.CapacityGB = [Math]::Round($_.CapacityMB/1KB,0)
$Report.FreeSpaceGB = [Math]::Round($_.FreeSpaceMB/1KB,0)
$Report
}
Regards, Robert