Support Tip: Set-SCOMRunAsProfile may fail on OpsMgr 2012 R2 upgraded from OpsMgr 2012
Published Feb 15 2019 09:48 PM 456 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
Command

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: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

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