When the related MP needs additional permissions, these are set within OpsMgr configuring the Run As Configuration by first defining an Account, distributing it to a set of computers or a certain Class and then adding that same account to a Profile, related to that MP.
When a Run As Configuration is set in SCOM R2 what actually happens is that a new MP is created or, when already in place because sometime a Run As Configuration has been set before, that very same MP is altered. The MP I talk about is the Microsoft.SystemCenter.SecureReferenceOverride MP:
And sometimes, when removing a MP which needed additional permissions, that MP can get in the way. One can get this error message when trying to remove the last component of a MP:
So one tends to think: ‘Lets clean up the related Profile and Account and be done with it’. However, this will not always work as expected.
Lets clean up the related profile of the MP to be removed:
As you can see, all is gone. No more accounts associated to the Profile related to the MP to be removed. Now lets try to remove the MP:
So it is time to edit the Microsoft.SystemCenter.SecureReferenceOverride MP manually. In this example I have taken the PKI Certificate Validation MP. Do not get me wrong since I really like this MP. It is only an example.
- First check out the ID of the MP which generates the error about the Microsoft.SystemCenter.SecureReferenceOverride MP. Double click it and copy its ID:
- Export the Microsoft.SystemCenter.SecureReferenceOverride MP. When done copy the export file (xml-file) to another place so there is ALWAYS a way back!!!
- Open Notepad and drag the export file into it. Search for the ID (found in Step 1) of the related MP which generates the error (in this case SystemCenterCentral.Utilities.Certificates):
When found remove the section which starts <Reference Alias=””>, found directly above the <ID> line. The end of the section is the FIRST </Reference> part, right after the <ID> line.
- When removed it looks like this:
(Every SCOM environment differs from the other one, so changes are huge that you will see something different here.)
- Save it and export this MP into SCOM R2.
- Now the MP which needs to be removed can be deleted without any error message.
3 comments:
Thanks for this!!!
You rock!
Thank you! This worked perfectly. I never would have figured this out on my own.
Hi Marnix, Just used this. Saved me hours of time. Thanks.
Post a Comment