Support Tip: Set-SCOMRunAsProfile may fail on OpsMgr 2012 R2 upgraded from OpsMgr 2012
Published Feb 15 2019 09:48 PM 418 Views
First published on TECHNET on Apr 17, 2014

~ Brian McDermott

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.

PS C:\> Set-SCOMRunAsProfile -Action "Add" -Profile $Profile -Account $Account -Group $Group

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.

Brian McDermott | Escalation Engineer | Microsoft CTS Management and Security Division

Get the latest System Center news on Facebook and Twitter :

System Center All Up:
System Center – Configuration Manager Support Team blog:
System Center – Data Protection Manager Team blog:
System Center – Orchestrator Support Team blog:
System Center – Operations Manager Team blog:
System Center – Service Manager Team blog:
System Center – Virtual Machine Manager Team blog:

Windows Intune:
WSUS Support Team blog:
The AD RMS blog:

App-V Team blog:
MED-V Team blog:
Server App-V Team blog:

The Forefront Endpoint Protection blog :
The Forefront Identity Manager blog :
The Forefront TMG blog:
The Forefront UAG blog:

Version history
Last update:
‎Mar 11 2019 10:05 AM
Updated by: