New-AdvancedSetting

This cmdlet creates a new advanced setting for the specified entity.

Syntax

[-Value]  <Object>
[-Entity]  <VIObject>
-Name  <String>
[-Force]
[-Server  <VIServer[]>]
[-Type  <AdvancedSettingType>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Value
Object 1 Specifies a value for the advanced setting.
required
Entity
VIObject 2
  • wildcards
  • pipeline
  • Specifies the entity for which you want to create a new advanced setting. This parameter accepts VIServer, VirtualMachine, DatastoreCluster, and Cluster objects. Passing multiple values to this parameter is obsolete.
    required
    Name
    String named Specifies a name for the advanced setting.
    optional
    Force
    SwitchParameter named Indicates that you want to create the new advanced setting even if another setting with the same name exists for the specified object type.
    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.
    optional
    Type
    AdvancedSettingType named Specifies the type of the new advanced setting.

    Output

    VMware.VimAutomation.ViCore.Types.V1.AdvancedSetting

    Examples


    Example 1

    New-AdvancedSetting -Entity (Get-Cluster -Name Cluster) -Name SettingName -Value SettingValue -Type ClusterHA

    Creates a new advanced setting for the Cluster cluster - of type CLusterHA, with name SettingName and value SettingValue.

    Related Commands

    Feedback

    Was this page helpful?