Automation

 View Only
  • 1.  Compare Settings between Hosts Get-AdvancedSetting

    Posted Oct 23, 2019 11:34 PM

    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


  • 2.  RE: Compare Settings between Hosts Get-AdvancedSetting

    Posted Oct 24, 2019 07:00 AM

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