Get-CMAlert

Gets Configuration Manager alerts.

Syntax

Get-CMAlert
   -Id <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMAlert
   [[-Name] <String>]
   [-TypeInstanceId <String>]
   [-TypeId <Int32>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

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

Examples

Example 1: Get all alerts

PS C:\> Get-CMAlert

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

Example 2: Get alerts by using name

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

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

Required Parameters

-Id

Specifies an alert ID.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies an alert name.

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TypeId
Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TypeInstanceId
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False