That works; however I don't understand how you are telling it to pull just 2 of the values because I see 3 (Key, Value, Summary) in vCenter Advanced Setting. Some items don't have all 3 and that is fine. But would like to include the summary if possible.
Script is a lot more clearner than my attempt at pasting info from different scripts over the internet.
Is that on 5.1 vSphere server that you see the third property ?
I'll check.Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
Correct it is 5.1
Have a follow up question.
I have mulitple vcenters and want to pull the data, however the $vpx = Get-View id 'OptionManager-VpxSettings' only seem work with 1 venter at a time.
Here is what I have
$vc1 = 192.168.0.1
$vc2 = 192.168.0.2
$vcenter = connect-viserver $vc1 $vc2
foreach ($vc in $vcenter)
$vpx = Get-View -Id 'OptionManager-VpxSettings'
It work if I put only 1 vcenter in at a time, but that defeats my purpose.
You will have to use the Server parameter, like this
$vpx = Get-View -Id 'OptionManager-VpxSettings' -Server $vcBlog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
This is cool !