kluken
Contributor
Contributor

Yup, I found that and pulled in pieces into my script so mine works now, thanks! Not sure why the striaght forwaed Set-VMHostAdvancedConfiguration  did not work, but at least I have something.

foreach ($vh in $vmhosts) {

if ((Get-VMHostAdvancedConfiguration -vmhost $vh -Name LVM.EnableResignature).Values -ne 0){
  Write-Host Resignature value is enabled for host $vh
        Write-Host Resetting resignature value to disabled
 
     $Option = New-Object Vmware.Vim.Optionvalue -Property @{
             Key = "LVM.EnableResignature"
             Value = $Value
         }

            $OptionArray = $Option

            $ESX = Get-View $vh.ID
            $OptMgr = Get-View $ESX.ConfigManager.AdvancedOption
            $OptMgr.UpdateOptions($OptionArray)
  }
}

Reply
0 Kudos