Set-AdvancedSetting Command | Vmware PowerCLI Reference

Set-AdvancedSetting

This cmdlet modifies the specified advanced setting.

Syntax

Set-AdvancedSetting
[ -AdvancedSetting ] < AdvancedSetting[] >
-Value < Object >
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
AdvancedSetting AdvancedSetting[] 1
  • pipeline
Specifies the advanced setting you want to modify.
required
Value Object named
Specifies a new value for the advanced setting.

Output

VMware.VimAutomation.ViCore.Types.V1.AdvancedSetting

Examples

Example 1

Get-AdvancedSetting -Entity (Get-Cluster -Name Cluster) -Name SettingName | Set-AdvancedSetting -Value NewValue

Changes the value of the advanced setting SettingName of the Cluster cluster.

Example 2

Get-AdvancedSetting -Entity Server -Name 'mail.smtp.server' | Set-AdvancedSetting -Value 'test.vmware.com'

Changes the value of the advanced setting mail.smtp.server of the specified server to test.vmware.com.

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.