Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 232869

Re: Powercli - get configured memory on a resource pool.

$
0
0

Try it like this

 

$report=@()foreach ($poolinGet-ResourcePool) {   $row=""|SelectName,ParentID,MemLimitGB,Parent,"VC"
   $row.Name=$pool.Name
  
$row.ParentID=$pool.ParentID
   $row.MemLimitGB= [int]$pool.MemLimitGB
   $row.Parent=$pool.Parent
   $row."VC"=$vc
  
$row."CONFIGMEM"=$pool.ExtensionData.summary.configuredMemoryMB
   $report+=$row
}
$report|Export-Csv

 

To reach the vSphere ResourcePool object, you go through the ExtensionData property.


Viewing all articles
Browse latest Browse all 232869

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>