Get-CMSiteStatusMessage

Gets site system status messages.

Syntax

Get-CMSiteStatusMessage
   [-ComputerName <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-Severity <Severity>]
   [-SiteCode <String>]
   -StartDateTime <DateTime>
   [<CommonParameters>]

Description

The Get-CMSiteStatusMessage cmdlet gets status messages for one or more Microsoft System Center Configuration Manager site system components. A status message is a message that a System Center Configuration Manager component generates that contains information about the success, failure, or operation of site system components. System Center Configuration Manager stores status messages in a System Center Configuration Manager site database. You can view status messages in the Status Message Viewer.

Examples

Example 1: Get site status messages

PS C:\> Get-CMSiteStatusMessage -ViewingPeriod "2012/09/03 02:16:10.000" -ComputerName "cmcen-dist02" -Severity Error -SiteCode "CM2"

This command gets the site status messages that System Center Configuration Manager receives on or after September 3, 2012 and that have an error severity. System Center Configuration Manager gets the status messages from the Configuration Manager site that has the site code CM2 on the computer named cmcen-dist02.tsqa.contoso.com.

Required Parameters

-StartDateTime
Type:DateTime
Aliases:ViewingPeriod
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-ComputerName

Specifies the fully qualified domain name (FQDN) of the server that hosts the site system role.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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
-Severity

Specifies the severity of a status message. The acceptable values for this parameter are:- All

  • Error
  • Information
  • Warning
Type:Severity
Parameter Sets:All, Error, Warning, Information
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SiteCode

Specifies the site code of the Configuration Manager site that hosts the site system role.

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