Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Disable-CMAlert

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

Disable-CMAlert

Disables alerts in Configuration Manager.

Syntax

Parameter Set: SearchByIdMandatory
Disable-CMAlert -Id <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory
Disable-CMAlert -Name <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Disable-CMAlert -InputObject <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Disable-CMAlert cmdlet disables one or more alerts in Microsoft System Center 2012 Configuration Manager.

System Center 2012 Configuration Manager does not evaluate the condition for a disabled alert and does not update a disabled alert, even if the state of the alert changes.

Parameters

-Id<String>

Specifies an alert dentifier. You can obtain the identifier of an alert by using the Get-Alert cmdlet.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-InputObject<IResultObject>

Specifies a CMAlert object. To obtain a CMAlert object, use the Get-CMAlert cmdlet.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of an alert. You can obtain the name of an alert by using Get-CMAlert.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

false

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

false

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.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Disable an alert by using alert ID

This command disables an alert that has the Id 16777218.


PS C:\> Disable-CMAlert -Id "16777218"

Example 2: Disable an alert by using alert object variable

In this example, the first command gets an alert object that has the Id 16777221 and stores it in the $AlertObj variable.

The second command disables the alert stored in the $AlertObj variable.


PS C:\> $AlertObj = Get-CMAlert -Id "16777221"PS C:\> Disable-CMAlert -InputObject $AlertObj

Related topics

 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.