Rolling back to a previous version of a SCOM Management Pack

In Operations Manager sometimes you may need to revert back to an older version of a Management Pack for a particular workload. The Operations Manager UI allows to delete and re-import MPs from the “Installed Management Packs” screen. The problem happenes when there are multiple and multi-level dependencies on the MP that you are trying to delete.

However now there is an enhanced version of a script available at TechNet  (developed by MSFT employee Christopher Crammond) that will help you to revert Management Packs with a single command.

Using the Script

  • Open the Operations Manager Command Shell prompt as an Administrator.
  • Download the script to remove a management pack with dependencies from here.
  • Execute the script as below. 

 .\RecursiveRemove.ps1 <ID or System Name of the MP>

  • For an example if you want to remove the SQL 2014 Disocvery MP run the script as below.

 .\RecursiveRemove.ps1 Microsoft.SQLServer.2014.Discovery

How to get the  the ID or System Name of an MP?

  • Selecting the MP that you want to delete in the Installed Management Packs view by clicking Properties in the Actions pane.
  • Copy the content in the ID : text box in the General tab.