What's the best / easiest way to get a VM's total used size, ignoring any RDM's?
Thanks
jason
Try something like this
Get-VM | Select Name,
@{N="UsedSpaceGB";E={
[math]::Round(($_.ExtensionData.Storage.PerDatastoreUsage |
Measure-Object -Property Committed -Sum |
Select -ExpandProperty Sum)/1GB,1)}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
LucD,
That worked great! Thanks!