PowerCLI Reference

Set-AdvancedSetting

Synopsis

This cmdlet modifies the specified advanced setting.

Syntax

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

Related Commands

Online version
Get-AdvancedSetting
New-AdvancedSetting
Remove-AdvancedSetting

Detailed Description

This cmdlet modifies the specified advanced setting.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ValueObjectSpecifies a new value for the advanced setting.truefalse
AdvancedSettingAdvancedSetting[]Specifies the advanced setting you want to modify.truetrue (ByValue)
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falsefalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse

Return Type

Zero or more modified AdvancedSetting objects

Notes

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.


Copyright © VMware, Inc. All rights reserved.