Get-CMConfigurationItemHistory

SYNOPSIS

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

SYNTAX

SearchByNameMandatoryNoWildcards (Default)

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

SearchByIdMandatory

Get-CMConfigurationItemHistory [-Id] <Int32> [-Revision <Int32>] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [<CommonParameters>]

SearchByValueMandatory

Get-CMConfigurationItemHistory [-InputObject] <IResultObject> [-Revision <Int32>] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [<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.

PARAMETERS

-DisableWildcardHandling

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: 

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

-Id

Specifies an ID for a configuration item revision.

Type: Int32
Parameter Sets: SearchByIdMandatory
Aliases: CIId, CI_ID

Required: True
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
Parameter Sets: SearchByValueMandatory
Aliases: 

Required: True
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
Parameter Sets: SearchByNameMandatoryNoWildcards
Aliases: LocalizedDisplayName

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Revision

Specifies the version of a configuration item as an integer.

Type: Int32
Parameter Sets: (All)
Aliases: 

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Introduction to Compliance Settings in Configuration Manager

Get-CMConfigurationItem

Get-CMConfigurationItemXMLDefinition

New-CMConfigurationItem

Set-CMConfigurationItem

Remove-CMConfigurationItem

Import-CMConfigurationItem

Export-CMConfigurationItem

ConvertTo-CMConfigurationItem

ConvertFrom-CMConfigurationItem