If you were using the Operations Manager command shell to automate Run As Account Administration then you may encounter the error below following an upgrade from System Center 2012 Operations Manager to System Center 2012 R2 Operations Manager.
Set-SCOMRunAsProfile : An object of class ManagementPack with name Microsoft.SystemCenter.SecureReferenceOverride was not found.
At line:1 char:1
+ Set-SCOMRunAsProfile -Action "Add" -Profile $Profile -Account $Account -Group $G ...
+ CategoryInfo : InvalidOperation: (Microsoft.Syste...sProfileCommand:UpdateSCRunAsProfileCommand) [Set-SCOMRunAsProfile], ObjectNotFoundException
+ FullyQualifiedErrorId : ExecutionError,Microsoft.SystemCenter.OperationsManagerV10.Commands.UpdateSCRunAsProfile
So why is it failing?
As the error suggests, it is failing to locate the Microsoft.SystemCenter.SecureReferenceOverride Management Pack, however when you check the console you can see it is there.
However, if you look closely at the version you may notice that the version still displays the OpsMgr 2012 version (7.0.8560), and this is why the cmdlet cannot find it. It is looking for a version of the SecureReferenceOverrides that matches the version of the Management Group. So if you were to look at the
Help > About
menu to see the version you will see it displays the OpsMgr 2012 R2 version of 7.1.10226.0.
So how do I fix this?
The fix is thankfully very simple. Go into the console and update the version number of the MP to match the version of the management group.
| Escalation Engineer
| Microsoft CTS Management and Security Division