## 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

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
Value | Object | Specifies a new value for the advanced setting. | true | false
AdvancedSetting | AdvancedSetting[] | Specifies the advanced setting you want to modify. | true | true (ByValue)
Confirm | SwitchParameter | If 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. | false | false
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false

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.