< Back
Set-VMHostAdvancedConfiguration
Post
NAME Set-VMHostAdvancedConfiguration
SYNOPSIS
This cmdlet modifies the advanced configuration settings of a host.
SYNTAX
Set-VMHostAdvancedConfiguration [[-Name] <String>] [[-Value] <Object>] [-VMHost] <VMHost[]> [-Server <VIServer[]>]
[-Confirm] [-WhatIf] [<CommonParameters>]
Set-VMHostAdvancedConfiguration [[-NameValue] <Hashtable>] [-VMHost] <VMHost[]> [-Server <VIServer[]>] [-Confirm]
[-WhatIf] [<CommonParameters>]
DESCRIPTION
This cmdlet is deprecated. Use New-AdvancedSetting, Set-AdvancedSetting, or Remove-AdvancedSetting instead.
This cmdlet modifies the advanced configuration settings of a host.
PARAMETERS
-Name <String>
Specifies the name of the host configuration setting you want to change.
Required? false
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-NameValue <Hashtable>
Provides a hash table that maps values to settings.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Server <VIServer[]>
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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-Value <Object>
Specifies a new value of the host configuration setting that you want to modify.
Required? false
Position? 2
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-VMHost <VMHost[]>
Specifies the host whose advanced configuration settings you want to change.
Required? true
Position? 3
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-Confirm [<SwitchParameter>]
If 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.
Required? false
Position? named
Default value $true
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are
modified.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
The modified System.Collections.Hashtable object
NOTES
-------------------------- Example 1 --------------------------
Get-VMHost 10.23.123.144 | Set-VmHostAdvancedConfiguration -Name Migrate.NetTimeout -Value ( [system.int32] 10 )
Change the migration timeout for the virtual machine host with an IP address 10.23.123.144.
-------------------------- Example 2 --------------------------
$migrationSettings = Get-VMHost 10.23.123.144| Get-VmHostAdvancedConfiguration -Name Migrate.*
Set-VmHostAdvancedConfiguration -VMHost 10.23.123.122 -NameValue $migrationSettings
Gets the advanced settings concerning migration from the host with an IP address 10.23.123.144 and applies them to
the virtual machine host with an IP address 10.23.123.122.
-------------------------- Example 3 --------------------------
Set-VMHostAdvancedConfiguration -VMHost 10.23.112.120 -Name Migrate.Enabled -Value 1
Enable VMotion on a host using Set-VMHostAdvancedConfiguration.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... ation.html
Get-VMHostAdvancedConfiguration
SYNOPSIS
This cmdlet modifies the advanced configuration settings of a host.
SYNTAX
Set-VMHostAdvancedConfiguration [[-Name] <String>] [[-Value] <Object>] [-VMHost] <VMHost[]> [-Server <VIServer[]>]
[-Confirm] [-WhatIf] [<CommonParameters>]
Set-VMHostAdvancedConfiguration [[-NameValue] <Hashtable>] [-VMHost] <VMHost[]> [-Server <VIServer[]>] [-Confirm]
[-WhatIf] [<CommonParameters>]
DESCRIPTION
This cmdlet is deprecated. Use New-AdvancedSetting, Set-AdvancedSetting, or Remove-AdvancedSetting instead.
This cmdlet modifies the advanced configuration settings of a host.
PARAMETERS
-Name <String>
Specifies the name of the host configuration setting you want to change.
Required? false
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-NameValue <Hashtable>
Provides a hash table that maps values to settings.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Server <VIServer[]>
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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-Value <Object>
Specifies a new value of the host configuration setting that you want to modify.
Required? false
Position? 2
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-VMHost <VMHost[]>
Specifies the host whose advanced configuration settings you want to change.
Required? true
Position? 3
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-Confirm [<SwitchParameter>]
If 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.
Required? false
Position? named
Default value $true
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are
modified.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
The modified System.Collections.Hashtable object
NOTES
-------------------------- Example 1 --------------------------
Get-VMHost 10.23.123.144 | Set-VmHostAdvancedConfiguration -Name Migrate.NetTimeout -Value ( [system.int32] 10 )
Change the migration timeout for the virtual machine host with an IP address 10.23.123.144.
-------------------------- Example 2 --------------------------
$migrationSettings = Get-VMHost 10.23.123.144| Get-VmHostAdvancedConfiguration -Name Migrate.*
Set-VmHostAdvancedConfiguration -VMHost 10.23.123.122 -NameValue $migrationSettings
Gets the advanced settings concerning migration from the host with an IP address 10.23.123.144 and applies them to
the virtual machine host with an IP address 10.23.123.122.
-------------------------- Example 3 --------------------------
Set-VMHostAdvancedConfiguration -VMHost 10.23.112.120 -Name Migrate.Enabled -Value 1
Enable VMotion on a host using Set-VMHostAdvancedConfiguration.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... ation.html
Get-VMHostAdvancedConfiguration