New-AdvancedSetting Command | Vmware PowerCLI Reference

New-AdvancedSetting

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

Syntax

New-AdvancedSetting
[ -Value ] < Object >
[ -Entity ] < VIObject >
-Name < String >
[-Force ]
[-ProgressAction < ActionPreference > ]
[-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
  • 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.
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 ProgressAction ActionPreference named
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

AdvancedSetting

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.