Restore-CMApplicationRevisionHistory

Restores a previous version of a Configuration Manager application from the application revision history.

Syntax

Restore-CMApplicationRevisionHistory
       [-Id] <UInt32>
       [-Revision] <UInt32>
       [-Confirm]
       [-DisableWildcardHandling]
       [-ForceWildcardHandling]
       [-PassThru]
       [-WhatIf]
       [<CommonParameters>]
Restore-CMApplicationRevisionHistory [-InputObject]  [-Revision]  [-Confirm]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [-PassThru] [-WhatIf] []
Restore-CMApplicationRevisionHistory [-Name]  [-Revision]  [-Confirm]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [-PassThru] [-WhatIf] []

Description

The Restore-CMApplicationRevisionHistory cmdlet restores a previous version of a Microsoft System Center Configuration Manager application. You can use the revision history that System Center Configuration Manager creates and maintains for each application to choose the version of the application that you want to restore.

If you restore an application version from the history, System Center Configuration Manager might automatically replace currently installed copies of the application the next time it evaluates the deployment schedule. For more control over application replacement, create a new application that supersedes the application that you want to replace, and then deploy this application to the required collection.

Examples

Example 1: Restore an application

PS C:\> Restore-CMApplicationRevisionHistory -Name "MSXML 6.0 Parser" -Revision 6.05

This command restores the application MSXML 6.0 Parser, version 6.05.

Required Parameters

-Id

Specifies an array of IDs of application revision histories.

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

Specifies an object that contains an application revision history. To get this object, use the Get-CMApplicationRevisionHistory cmdlet.

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

Specifies an array of names of application revision histories.

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

Specifies the version number of the application revision that you restore.

Type:UInt32
Required:True
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

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

Indicates that wildcard handling is enabled.

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

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

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

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False