Get-SCSMAnnouncement

Get-SCSMAnnouncement

Retrieves announcements that are defined in Service Manager.

構文

Parameter Set: Default
Get-SCSMAnnouncement [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-DisplayName <String> ] [-Id <String> ] [-Priority <String> ] [-SCSession <Connection[]> ] [-Title <String> ] [ <CommonParameters>]

詳細説明

The Get-SCSMAnnouncement cmdlet retrieves announcements that are defined in Service Manager. This includes announcements that have been published and that have expired. You can restrict the results by providing a filter or criteria. Use the Where-Object cmdlet to retrieve only announcements that are active or that have expired. The Title, Id, and Name parameters are additive. If you use the Title and the Id parameters, only those announcements which satisfy both parameters are returned.

パラメーター

-ComputerName<String[]>

Specifies the name of the computer on which the System Center Data Access service runs. The user account that is specified in the Credential parameter must have access rights to the specified computer.

エイリアス

なし

必須?

false

位置は?

named

既定値

localhost

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

true (ByValue)

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

false

-Credential<PSCredential>

Specifies the credentials that this cmdlet uses to connect to the server on which the System Center Data Access service runs. The specified user account must have access rights to that server.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

true (ByValue)

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

false

-DisplayName<String>

Specifies the display name of an announcement. You can specify a regular expression.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-Id<String>

Specifies the ID of the announcement to retrieve.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-Priority<String>

Specifies the priority of an announcement. This allows you to retrieve announcements of a specified priority. Allowed values are Medium, Critical, Low, and custom values.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-SCSession<Connection[]>

Represents the session to the Service Manager server.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

true (ByValue)

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

false

-Title<String>

Specifies the title of the announcement. This parameter accepts a wildcard character.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

<CommonParameters>

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

入力

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

  • None.

    You cannot pipe input to this cmdlet.

出力

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

  • System.Announcement.Item

    The output of this cmdlet is a list of announcements.

Example 1: Get all announcements

This command retrieves all announcements that are defined in Service Manager.

C:\PS>Get-SCSMAmannouncement

Example 2: Get announcements for an ID

This command retrieves the announcement in which the ID equals 008.

C:\PS>Get-SCSMAmannouncement -Id "008"

Example 3: Get announcements for a title

This command retrieves the announcement in which the title equals 33.

C:\PS>Get-SCSMAmannouncement -Title "33"

関連トピック

New-SCSMAnnouncement

Update-SCSMAnnouncement

Remove-SCSMAnnouncement