Hello,
someone know how to change advanced settings like "Disk.PathEvalTime" ?
many thanks
Eric
Hi Eric,
Try this approach:
$SI = Get-View $ServiceInstance
$OM = Get-View $SI.Content.Setting
Query the option:
$OM.QueryOptions('Disk.PathEvalTime')
Change the option:
$OM.UpdateOptions( ... )
Still working on the syntax of the UpdateOptions method
UPDATE: Ah, found it!
$newOption = New-Object VMware.Vim.OptionValue
$newOption.Key = 'Disk.PathEvalTime'
$newOption.Value = 300
$OM.UpdateOptions($newOption)
Message was edited by: hugopeeters
Hi Eric,
Try this approach:
$SI = Get-View $ServiceInstance
$OM = Get-View $SI.Content.Setting
Query the option:
$OM.QueryOptions('Disk.PathEvalTime')
Change the option:
$OM.UpdateOptions( ... )
Still working on the syntax of the UpdateOptions method
UPDATE: Ah, found it!
$newOption = New-Object VMware.Vim.OptionValue
$newOption.Key = 'Disk.PathEvalTime'
$newOption.Value = 300
$OM.UpdateOptions($newOption)
Message was edited by: hugopeeters
Have a look at .
It shows how to change settings with values and those with check boxes.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference