Which "Get-VM | gm" option gives me the storage usage I see on the VM summary page?
The UsedSpaceGb property.
Get-VM | Select Name,UsedSpaceGB
And if you want the same number of decimals
Get-VM | Select Name,@{N='UsedSpaceGB';E={[math]::Round($_.UsedSpaceGB,2)}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
The UsedSpaceGb property.
Get-VM | Select Name,UsedSpaceGB
And if you want the same number of decimals
Get-VM | Select Name,@{N='UsedSpaceGB';E={[math]::Round($_.UsedSpaceGB,2)}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference