Thanks LucD for quick response.
Yeah I meant the first figure (i.e. 4222 MB in your case). I actually tried to use "$_.ExtensionData.Summary.Quickstats.StaticMemoryEntitlement" before I post the question. What I found is that the value of that attribute does not always match what is given by the vSphere Client GUI. So I am wondering is there any other ways
to calculate it. I want the result *always match* what vSphere Client GUI reports.
For provisioned CPU in host's view, I can do it with
$cpuProvisionedMHz = $vm.host.CpuTotalMhz / $vm.host.NumCpu * $vm.NumCpu
What about provisioned memory in host's view?
Thanks!