Get-CMConfigurationItemHistory

Get-CMConfigurationItemHistory

Gets the previous versions of a configuration item in Configuration Manager.

構文

Parameter Set: SearchByIdMandatory
Get-CMConfigurationItemHistory -Id <String[]> [-Revision <Int32> ] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory
Get-CMConfigurationItemHistory -Name <String[]> [-Revision <Int32> ] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Get-CMConfigurationItemHistory -InputObject <IResultObject> [-Revision <Int32> ] [ <CommonParameters>]

詳細説明

The Get-CMConfigurationItemHistory cmdlet gets the previous versions of a configuration item.

Microsoft System Center 2012 Configuration Manager updates configuration items based on configuration management, software updates management, and operating system deployment. System Center 2012 Configuration Manager stores the previous version of the item. The server removes previous versions, by default, when the data is more than 90 days old.

This cmdlet gets the history of an item for a specified item name. This cmdlet also gets the history for a specified revision of an item.

パラメーター

-Id<String[]>

Specifies an identifier for a configuration item revision.

エイリアス

CIId

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-InputObject<IResultObject>

Specifies a configuration item object. To obtain a configuration item object, use the Get-CMConfigurationItem cmdlet.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Name<String[]>

Specifies an array of names of configuration items.

エイリアス

LocalizedDisplayName

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Revision<Int32>

Specifies the version of a configuration item as an integer.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

<CommonParameters>

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

入力

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

出力

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

Example 1: Get item history by using a name

This command gets the history for a configuration item named CMCI07.

PS C:\> Get-CMConfigurationItemHistory -Name "CMCI07"

Example 2: Get item history by using an ID

This command gets the previous version of a configuration item with the specified ID.

PS C:\> Get-CMConfigurationItemHistory -Id "16777568"

関連トピック

Export-CMConfigurationItem

Get-CMConfigurationItem

Get-CMConfigurationItemXMLDefinition

Remove-CMConfigurationItem

Set-CMConfigurationItem