Get-CMApplicationRevisionHistory
Get-CMApplicationRevisionHistory
Gets a Configuration Manager object that represents the revision history for an application.
Syntax
Parameter Set: SearchByNameMandatory
Get-CMApplicationRevisionHistory -Name <String[]> [-Revision <Int32> ] [ <CommonParameters>]
Parameter Set: SearchByIdMandatory
Get-CMApplicationRevisionHistory -Id <String[]> [-Revision <Int32> ] [ <CommonParameters>]
Parameter Set: SearchByValueMandatory
Get-CMApplicationRevisionHistory -InputObject <IResultObject> [-Revision <Int32> ] [ <CommonParameters>]
Detailed Description
The Get-CMApplicationRevisionHistory cmdlet gets a Microsoft System Center 2012 Configuration Manager object that represents the revision history for an application. When you revise an application or a deployment type contained in an application, System Center 2012 Configuration Manager creates a new revision of the application. You can use the revision history to display each revision made to an application, view the properties of a revision, restore a previous revision, or delete an old revision.
Parameters
-Id<String[]>
Specifies an array of IDs of application revision histories.
Aliases |
CIId |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-InputObject<IResultObject>
Specifies an application object. To obtain an application object, use the Get-CMApplication cmdlet.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Name<String[]>
Specifies an array of names of application revision histories.
Aliases |
LocalizedDisplayName |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Revision<Int32>
Specifies the version number of an application revision.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Get the revision history for an application
This command gets the application revision history named MSXML 6.0 Parser.
PS C:\> Get-CMApplicationRevisionHistory -Name "MSXML 6.0 Parser"