Export (0) Print
Expand All
Expand Minimize

Set-DefaultSetting

Set-DefaultSetting

Sets default settings.

Syntax

Parameter Set: FromDefaultSettingName
Set-DefaultSetting [-Name] <String> [-Value] <String> [[-Path] <String[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: FromDefaultSetting
Set-DefaultSetting [-Setting] <DefaultSettingBase[]> [[-Path] <String[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

Sets default settings.

Parameters

-Name<String>

Specifies the name of the default setting. The name is case-sensitive.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Path<String[]>

Specifies the path or set of paths to the management groups to which to apply the default settings.


Aliases

none

Required?

false

Position?

4

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Setting<DefaultSettingBase[]>

Specifies a set of default setting objects.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Value<String>

Specifies the value of the default setting.


Aliases

none

Required?

true

Position?

3

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Notes

  • For more information, type "Get-Help Set-DefaultSetting -detailed". For technical information, type "Get-Help Set-DefaultSetting -full".
    When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

Examples

-------------- EXAMPLE 1 --------------

This command sets the default setting of the number of days for an alert to auto-resolve to 25. The name of the setting is case-sensitive.


C:\PS>set-defaultsetting `-name ManagementGroup\AlertResolution\AlertAutoResolveDays `-value 25

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft