Posts

Showing posts from January, 2012

PowerCLI: UserVars.CIMoemProviderEnabled, changing to a value of 1 (or 0)

Summary: This value appears after installing the Dell OMSA vib for ESXi 4.1.  Tried changing this value to 1 using PowerCLI proved a bit more difficult than I originally thought, even cheating w/ Onyx. Example: Using this: $changedValue = New-Object VMware.Vim.OptionValue[] (1) $changedValue[0] = New-Object VMware.Vim.OptionValue $changedValue[0].key = "UserVars.CIMoemProviderEnabled" $changedValue[0].value = 1 $_this = Get-View -Id 'OptionManager-EsxHostAdvSettings-00000' $_this.UpdateOptions($changedValue) I’d get this ‘useful’ error: Exception calling "UpdateOptions" with "1" argument(s): "A specified parameter was not correct. " At line:1 char:21 + $_this.UpdateOptions <<<< ($changedValue)     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException     + FullyQualifiedErrorId : DotNetMethodException Solution: Apparently the ‘value’ property needs to be dec...