Set-VMHostAdvancedConfiguration

Synopsis

Updates the advanced configuration settings of a host.

Syntax

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

Related Commands

Get-VMHostAdvancedConfiguration

Detailed Description

Updates the advanced configuration settings of a host.

Parameters

NameDescriptionRequired?Pipeline InputDefault Value
NameSpecify the name of the host configuration setting you want to change.falsefalse
ValueSpecify a new value of the host configuration setting specified by the Name parameter.falsefalse
VMHostSpecify the host whose advanced configuration settings you want to change.truetrue (ByValue)
ServerSpecify the vSphere servers 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
WhatIfIndicate that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse
ConfirmIndicate that the cmdlet asks for confirmation before running.falsefalse
NameValueProvide a hash table that maps values to settings.falsetrue (ByValue)

Input Type

Return Type

System.Collections.Hashtable

Notes

Examples

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

C:\PS>Get-VMHost 10.23.123.344 | Set-VmHostAdvancedConfiguration -Name Migrate.N
etTimeout -Value ( [system.int32] 10 )


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




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

C:\PS>$migrationSettings = Get-VMHost 10.23.123.344| Get-VmHostAdvancedConfigura
tion -Name Migrate.* 

Set-VmHostAdvancedConfiguration -VMHost ( Get-VMHost 10.23.123.546 ) -NameValue 
$migrationSettings


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




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

C:\PS>Set-VMHostAdvancedConfiguration -VMHost 10.23.112.120 -Name Migrate.Enable
d -Value 1


Enable VMotion on a host using Set-VMHostAdvancedConfiguration.

Copyright © 1998 - 2009 VMware, Inc. All rights reserved.