VMware Cloud Community
mulliganesx
Enthusiast
Enthusiast

Compare Settings between Hosts Get-AdvancedSetting

Looking to compare settings of 2 hosts to ensure build quality.  Currently able to pull advanced settings of each host within a cluster, however I am looking to do a compare-object that also provides vmk, dvswitch, vmotion settings in addition to configurations.

$esxName = '*'
$esx = Get-VMHost -Name $esxName
Get-AdvancedSetting -Entity $esx | Select Name,Value

$esxName = '*'
 
$esx = Get-VMHost -Name $esxName
 
Get-AdvancedSetting -Entity $esx | Select Name,Value
1 Reply
LucD
Leadership
Leadership

I would suggest capturing the results in a variable, and then use Compare-Object to find the differences.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference