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

Re: Setting LVM.EnableResignature issue with PowerCLI in vpshere 5.1 and Powercli 5.1 U2

$
0
0

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)
  }
}


Viewing all articles
Browse latest Browse all 182084

Trending Articles



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