Get-CMAlert

Get-CMAlert

Gets Configuration Manager alerts.

Syntax

Parameter Set: SearchByName
Get-CMAlert [-Name <String> ] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMAlert -Id <String> [ <CommonParameters>]

Detailed Description

The Get-CMAlert cmdlet gets one or more Microsoft System Center 2012 SP1 Configuration Manager alerts. You can get a specific alert by specifying the name or ID of the alert.

Parameters

-Id<String>

Specifies an alert ID.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies an alert name.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

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: Get all alerts

This command gets all alerts that System Center 2012 Configuration Manager manages.

PS C:\> Get-CMAlert

Example 2: Get alerts by using name

This command gets all alerts that have a name that begins with the letter D.

PS C:\> Get-CMAlert -Name "D*"

Enable-CMAlert

Remove-CMAlert

Set-CMAlert

Suspend-CMAlert

Disable-CMAlert