Restore-CMApplicationRevisionHistory
Restores a previous version of a Configuration Manager application from the application revision history.
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>]
The Restore-CMApplicationRevisionHistory cmdlet restores a previous version of a Microsoft System Center 2012 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.
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 |
Specifies an object that contains an application revision history. To obtain 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 |
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 |
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 |
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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 |
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).
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.