powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Set-AdvancedSetting



NAME
Set-AdvancedSetting

SYNOPSIS
Modifies the specified advanced setting.

SYNTAX
Set-AdvancedSetting [-AdvancedSetting] [-Value] [-WhatIf] [-Confirm] [ s>]


DESCRIPTION
Modifies the specified advanced setting.


PARAMETERS
-AdvancedSetting
Specify the advanced setting you want to modify.

Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-Value
Specify a new value for the advanced setting.

Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf
Indicate that the cmdlet is run only to display the changes that would be made and actually no objects are modi
fied.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm
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.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
AdvancedSetting


NOTES




-------------- Example 1 --------------

C:\PS>Get-AdvancedSetting -Entity (Get-Cluster -Name Cluster) -Name SettingName | Set-AdvancedSetting -Value NewVal
ue


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





-------------- Example 2 --------------

C:\PS>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 LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Set-AdvancedSetting.html
Get-AdvancedSetting
New-AdvancedSetting
Remove-AdvancedSetting