New-AdvancedSetting Command | Vmware PowerCLI Reference


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


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


Required Parameter Name Type Position Features Description
Value Object 1
Specifies a value for the advanced setting.
Entity VIObject 2
  • pipeline
  • wildcards
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.
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.




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


This cmdlet retrieves the advanced settings for the specified entity.

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

This cmdlet removes the specified advanced setting.

This cmdlet modifies the specified advanced setting.