Here's what I've got in the advsettings.csv setting,value Syslog.loggers.sdrsInjector.rotate,20 and this matches with what is returned here for the host I'm targeting: get-vmhost esxhos...
See more...
Here's what I've got in the advsettings.csv setting,value Syslog.loggers.sdrsInjector.rotate,20 and this matches with what is returned here for the host I'm targeting: get-vmhost esxhostname | %{ $hostn=$_.Name; Get-VMHostAdvancedConfiguration -VMHost $_ | % { $_.getEnumerator()| ? {$_.Key -like "Syslog.loggers.sdr*"}|select Name,Value } } Name ---- Syslog.loggers.sdrsInjector.rotate Syslog.loggers.sdrsInjector.size I tried to echo out the values, but it comes back as VMware.Vim.OptionValue, so not helpful there. PowerCLI C:\Scripts\Nutanix\ESX Advanced Settings> .\faster.ps1 Exception calling "UpdateOptions" with "1" argument(s): "The request refers to an unexpected or unknown type." At C:\Scripts\Nutanix\ESX Advanced Settings\faster.ps1:15 char:5 + $advSettingsMgr.UpdateOptions($values) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : VimException VMware.Vim.OptionValue I found this post from you a while back, but it appears that host level changes do not have the same methods (ReconfigVM_Task) available. I was sort of working with something similar, but for hosts $spec = New-Object VMware.Vim.HostConfigManager $spec.extraConfig += New-Object VMware.Vim.OptionValue $spec.extraConfig[0].key = "Syslog.loggers.sdrsInjector.rotate" $spec.extraConfig[0].value = "20" (get-view (Get-vmhost -Name vtsr6201.fmr.com).ID).ReconfigVM_Task($spec) Hitting a snag with the .ReconfigVM_Task part as I'm unable to find that for hosts. Thanks!