Get-CMSiteStatusMessage
Get-CMSiteStatusMessage
Gets site system status messages.
構文
Parameter Set: SearchBySiteStatus
Get-CMSiteStatusMessage -ViewingPeriod <DateTime> [-ComputerName <String> ] [-Severity <Severity> {All | Error | Information | Warning} ] [-SiteCode <String> ] [ <CommonParameters>]
詳細説明
The Get-CMSiteStatusMessage cmdlet gets status messages for one or more Microsoft System Center 2012 Configuration Manager site system components. A status message is a message that a System Center 2012 Configuration Manager component generates that contains information about the success, failure, or operation of site system components. System Center 2012 Configuration Manager stores status messages in a System Center 2012 Configuration Manager site database. You can view status messages in the Status Message Viewer.
パラメーター
-ComputerName<String>
Specifies the fully qualified domain name (FQDN) of the server that hosts the site system role.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Severity<Severity>
Specifies the severity of a status message. Valid values are:
-- All
-- Error
-- Information
-- Warning
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-SiteCode<String>
Specifies the site code of the Configuration Manager site that hosts the site system role.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ViewingPeriod<DateTime>
Specifies the viewing period for site system status messages.
You can view only the status messages that Configuration Manager receives on or after the date and time that you specify. The default value is the current date, time, and time zone.
エイリアス |
なし |
必須? |
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 site status messages
This command gets the site status messages that System Center 2012 Configuration Manager receives on or after September 3, 2012 and that have an error severity. System Center 2012 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.
PS C:\> Get-CMSiteStatusMessage -ViewingPeriod "2012/09/03 02:16:10.000" -ComputerName "cmcen-dist02" -Severity Error -SiteCode "CM2"