vSphere PowerCLI Reference

Set-AdvancedSetting

Synopsis

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

Modifies the specified advanced setting.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ValueObjectSpecify a new value for the advanced setting.truefalse
AdvancedSettingAdvancedSetting[]Specify 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
WhatIfSwitchParameterIndicate that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse

Return Type

AdvancedSetting

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 © 1998 - 2011 VMware, Inc. All rights reserved.