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

Re: PowerCLI script to list resource pools and shares

$
0
0

Try something like this

 

Get-Cluster|Get-ResourcePool|Select@{N="Cluster";E={Get-View$_.ExtensionData.Owner|Select-ExpandPropertyName}},
@
{N="Parent";E={$_.Parent.Name}},
@{N="ResourcePool";E={$_.Name}},
CpuSharesLevel
,MemSharesLevel

 

I included a Parent property, since you can have nested resourcepools and to cope with the hidden Resources resourcepool.

I just included the share levels, but any other of the share properties can be included as well


Viewing all articles
Browse latest Browse all 246801

Trending Articles



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