I have a piece of like this
$vms = Get-VM | sort-object name | select name, powerstate, host, MemoryMB, NumCpu, @{N="MemLimitMB"; E={$_ |
Get-VMResourceConfiguration | select $_.MemLimitMB }}, @{N="URL";E={$_.CustomFields["URL"]}}, Notes | convertto-
html > "C:\ProgramData\VMware\VMware VirtualCenter\docRoot\vmstatus.htm"
notice the "MemLimitMB" portion. However, the result is like this (totally different thing).
vmname | PoweredOff | hostname | 2048 | 1 | CpuShares:Normal/1000 MemShares:Normal/20480 | https://xxxxxxxxxxxx |
Anything wrong here?
Thanks a lot for the help