Set-VMHostAdvancedConfiguration

This cmdlet is deprecated. Use New-AdvancedSetting, Set-AdvancedSetting, or Remove-AdvancedSetting instead.This cmdlet modifies the advanced configuration settings of a host.

Syntax

[-VMHost]  <VMHost[]>
[[-Value]  <Object>]
[-Name  <String>]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VMHost
VMHost[] 2
  • wildcards
  • pipeline
  • Specifies the host whose advanced configuration settings you want to change.
    optional
    Value
    Object 1 Specifies a new value of the host configuration setting that you want to modify.
    optional
    Name
    String named
  • wildcards
  • Specifies the name of the host configuration setting you want to change.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.

    [-VMHost]  <VMHost[]>
    [-NameValue  <Hashtable>]
    [-Server  <VIServer[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    VMHost
    VMHost[] 2
  • wildcards
  • pipeline
  • Specifies the host whose advanced configuration settings you want to change.
    optional
    NameValue
    Hashtable named
  • pipeline
  • Provides a hash table that maps values to settings.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.

    Output

    System.Collections.Hashtable

    Examples


    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 Commands

    Feedback

    Was this page helpful?