Get-CMComponentStatusMessage

Get-CMComponentStatusMessage

Gets component status messages in Configuration Manager.

構文

Parameter Set: SearchByName
Get-CMComponentStatusMessage -ViewingPeriod <DateTime> [-ComponentName <String> ] [-ComputerName <String> ] [-Severity <Severity> {All | Error | Information | Warning} ] [-SiteCode <String> ] [ <CommonParameters>]

詳細説明

The Get-CMComponentStatusMessage cmdlet gets component status messages for a specified period.

Microsoft System Center 2012 Configuration Manager indicates whether operations succeed or fail and include other information in component status messages. Threads or processes send component status messages to System Center 2012 Configuration Manager sites, identified by site codes.

You can define which messages to get by the severity of the message, the component that created the message, the computer that hosts that component, or the System Center 2012 Configuration Manager server that receives the message. You must specify a viewing period, as a TimeSpan object.

パラメーター

-ComponentName<String>

Specifies the name of a thread or process. A thread or process sends a component status message.

エイリアス

Component

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-ComputerName<String>

Specifies the name of a computer. A computer hosts a component that sends a status message.

エイリアス

MachineName

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Severity<Severity>

Specifies the severity of status messages. Valid values are:

-- ALL
-- Error
-- Information
-- Warning

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SiteCode<String>

Specifies an array of a site codes for Configuration Manager sites.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-ViewingPeriod<DateTime>

Specifies a DateTime object. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type Get-Help Get-Date. The cmdlet limits component status messages to this time period.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Get critical messages for a site

This command gets component status messages for the specified viewing period for the System Center 2012 Configuration Manager site that has the site code CM1. The command gets only critical messages.

PS C:\> Get-CMComponentStatusMessage -ViewingPeriod "2/1/2013 12:00 AM" -Severity Critical -SiteCode "CM1"

関連トピック

Get-CMComponentStatusSetting