Deleting System Center Global Service Monitor Core Library MP on which Microsoft.SystemCenter.SecureReferenceOverride depend

 

I recently installed for test purposes Global Service monitoring management packs. After testing I started removing it, but System Center Global Service Monitor Core Library  MP gave me the message that another MP is dependant on it. In this case MP in title of this post. It usually happens when this MP create some new Run as profiles in SCOM. After internet  search I found a solution, but I decided to make my post because i could not get the result from that post. After a while i figure it out. So lets begin:

First go into Operations management shell: Write this $MP = Get-SCOMManagementpack -Name Microsoft.SystemCenter.SecureReferenceOverride. It will make variable that point to our MP. After that list references with this: $MP.References. It will show all MP it depend upon. 

image

Detect Key of your MP you can not delete. Type this: $MP.References.Remove(“yourMPKey“). You should get True if it is deleted. after that do check up of MP with $MP.Verify() command to make sure there is no orphaned values. If everything is OK you should save changes with $MP.AcceptChanges()

image

Try now to delete System Center Global Service Monitor Core Library and you will succeed.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s