Get-CMAlert

Gets Configuration Manager alerts.

Syntax

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

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
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

Indicates that wildcard handling is disabled.

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

Indicates that wildcard handling is enabled.

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

Specifies an alert name.

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