Bulk Delete Multiple Operations Manager Management Packs [2020 Updated]

microsoft windows white logo
microsoft windows white logo

Estimated reading time: 2 minutes

If you are using System Center Operations Manager and you want to bulk remove multiple Management Packs, then you can use the power of the Operations Manager Shell to carry it out.

First of all, you need to open up the Operations Manager Shell. Then you should run the following command:

Get-SCOMManagementPack | where Name -like "*Microsoft.SQLServer*"

where:

  • “*Microsoft.SQLServer*” = the management pack names that you want to remove. Note that you can use a * wildcard here.

This will list all the management packs that you have installed as per the criteria you have entered and should look something like this:

Operations Manager Powershell Output
Operations Manager Powershell Output

Check you are happy with this list and then move onto the following command which will remove all of those management packs listed:

Get-SCOMManagementPack | where Name -like "*Microsoft.SQLServer*" | Remove-SCManagementPack

This will then go through and remove all of the management packs that match your criteria.

Depending on how many you are trying to remove at the same time – this could take a while.

This has been updated and tested on System Center Operations Manager 2019.

Feedback

If you have any questions or feedback on this guide, please feel free to leave us a message below and we will get back to you as soon as we can.

Share this content:

Click to rate this post!
[Total: 0 Average: 0]
Avatar for Andrew Armstrong

About Andrew Armstrong

Founder of TechyGeeksHome and Head Editor for over 15 years! IT expert in multiple areas for over 26 years. Sharing experience and knowledge whenever possible! Making IT Happen.

View all posts by Andrew Armstrong

Leave a Reply

Your email address will not be published. Required fields are marked *