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]
[-Entity] <VIObject>
-Name <String>
[-Force]
[-Server <VIServer[]>]
[-Type <AdvancedSettingType>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
Object | 1 |
|
Specifies a value for the advanced setting. | required |
|
VIObject | 2 |
|
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 |
|
String | named |
|
Specifies a name for the advanced setting. | optional |
|
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 |
|
VIServer[] | named |
|
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 |
|
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 modifies the specified advanced setting.
This cmdlet removes the specified advanced setting.
This cmdlet creates a new advanced setting for the specified entity.