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

It looks as if the function from  9.  Re: Set LVM/EnableResignature = 1 with PowerCLI on ESX 4.1

works on 5.1 as well

Function Set-VMHostResignature {

 

    [CmdletBinding()]

  

    Param (

 

        [Parameter(

            Mandatory = $True,

            ValueFromPipeline = $True

        )]

        [VMware.VimAutomation.ViCore.Impl.V1.Inventory.VMHostImpl[]]$VMHost,

      

      

        [Parameter(

            Mandatory = $True,

            Position = 0

        )]

        [ValidateSet(0, 1)]

        [long]$Value

  

    )

 

 

    Begin {

  

        $Option = New-Object Vmware.Vim.Optionvalue -Property @{

             Key = "LVM.EnableResignature"

             Value = $Value

        }

 

        $OptionArray = $Option

 

    }

 

 

    Process {

  

        $VMHost | ForEach-Object {

      

            $ESX = Get-View $_.ID

            $OptMgr = Get-View $ESX.ConfigManager.AdvancedOption

            $OptMgr.UpdateOptions($OptionArray)

        }

      

    }

 

}

 

Get-VMHost | Set-VMHostResignature -Value 1


Viewing all articles
Browse latest Browse all 182084

Trending Articles



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