powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Set-VMHostAdvancedConfiguration



NAME
Set-VMHostAdvancedConfiguration

SYNOPSIS
Updates the advanced configuration settings of a host.

SYNTAX
Set-VMHostAdvancedConfiguration [[-Name] ] [[-Value] ] [-VMHost] [-Server ]
[-WhatIf] [-Confirm] []

Set-VMHostAdvancedConfiguration [[-NameValue] ] [-VMHost] [-Server ] [-WhatIf] [-
Confirm] []


DESCRIPTION
Updates the advanced configuration settings of a host.


PARAMETERS
-Name
Specify the name of the host configuration setting you want to change.

Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Value
Specify a new value of the host configuration setting specified by the Name parameter.

Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false

-VMHost
Specify the host whose advanced configuration settings you want to change.

Required? true
Position? 3
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-WhatIf
Indicate that the cmdlet is run only to display the changes that would be made and actually no objects are modi
fied.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm
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

-NameValue
Provide a hash table that maps values to settings.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
System.Collections.Hashtable


NOTES




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

C:\PS>Get-VMHost 10.23.123.144 | Set-VmHostAdvancedConfiguration -Name Migrate.NetTimeout -Value ( [system.int32] 1
0 )


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





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

C:\PS>$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 --------------

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


Enable VMotion on a host using Set-VMHostAdvancedConfiguration.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Set-VMHostAdvancedConfiguration.h
tml
Get-VMHostAdvancedConfiguration