Get-​CM​Configuration​Item​History

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

Syntax

Get-CMConfigurationItemHistory
   [-Id] <Int32>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-Revision <Int32>]
   [<CommonParameters>]
Get-CMConfigurationItemHistory
   [-InputObject] <IResultObject>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-Revision <Int32>]
   [<CommonParameters>]
Get-CMConfigurationItemHistory
   [-Name] <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-Revision <Int32>]
   [<CommonParameters>]

Description

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

Microsoft System Center Configuration Manager updates configuration items based on configuration management, software updates management, and operating system deployment. 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.

Examples

Example 1: Get item history by name

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

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

Example 2: Get item history by ID

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

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

Required Parameters

-Id

Specifies an ID for a configuration item revision.

Type:Int32
Aliases:CIId, CI_ID
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

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

Type:IResultObject
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies an array of names of configuration items.

Type:String
Aliases:LocalizedDisplayName
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Revision

Specifies the version of a configuration item as an integer.

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