Restore-CMApplicationRevisionHistory

Restore-CMApplicationRevisionHistory

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

Syntax

Parameter Set: SearchByNameMandatory
Restore-CMApplicationRevisionHistory -Name <String[]> -Revision <Int32> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Restore-CMApplicationRevisionHistory -Id <String[]> -Revision <Int32> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Restore-CMApplicationRevisionHistory -InputObject <IResultObject> -Revision <Int32> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Restore-CMApplicationRevisionHistory cmdlet restores a previous version of a Microsoft System Center 2012 SP1 Configuration Manager application. You can use the revision history that System Center 2012 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 2012 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.

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 object that contains an application revision history. To get this object, use the Get-CMApplicationRevisionHistory 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 the application revision that you restore.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

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: Restore an application

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

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

Get-CMApplicationRevisionHistory

Remove-CMApplicationRevisionHistory