PowerCLI Reference



This cmdlet modifies the advanced configuration settings of a host.


Set-VMHostAdvancedConfiguration [[-Name] <String>] [[-Value] <Object>] [-VMHost] <VMHost[]> [-Server <VIServer[]>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMHostAdvancedConfiguration [[-NameValue] <Hashtable>] [-VMHost] <VMHost[]> [-Server <VIServer[]>] [-Confirm] [-WhatIf] [<CommonParameters>]

Related Commands

Online Version

Detailed Description

This cmdlet is deprecated. Use New-AdvancedSetting, Set-AdvancedSetting, or Remove-AdvancedSetting instead.

This cmdlet modifies the advanced configuration settings of a host.


NameTypeDescriptionRequired?Pipeline InputDefault Value
NameStringSpecifies the name of the host configuration setting you want to change.falseFalse
NameValueHashtableProvides a hash table that maps values to settings.falseTrue (ByValue)
ValueObjectSpecifies a new value of the host configuration setting that you want to modify.falseFalse
VMHostVMHost[]Specifies the host whose advanced configuration settings you want to change.trueTrue (ByValue)
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falseFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falseFalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

The modified System.Collections.Hashtable object



-------------------------- Example 1 --------------------------

Get-VMHost | Set-VmHostAdvancedConfiguration -Name Migrate.NetTimeout -Value ( [system.int32] 10 )

Change the migration timeout for the virtual machine host with an IP address

-------------------------- Example 2 --------------------------

$migrationSettings = Get-VMHost| Get-VmHostAdvancedConfiguration -Name Migrate.*

Set-VmHostAdvancedConfiguration -VMHost  -NameValue $migrationSettings

Gets the advanced settings concerning migration from the host with an IP address and applies them to the virtual machine host with an IP address

-------------------------- Example 3 --------------------------

Set-VMHostAdvancedConfiguration -VMHost -Name Migrate.Enabled -Value 1

Enable VMotion on a host using Set-VMHostAdvancedConfiguration.

Copyright © VMware, Inc. All rights reserved.