My colleague Kåre has already blogged about how to set the Operations Manager 2012 license, to be read here.

However, I have experienced this command fails – even when running from an elevated Operations Manager Shell – giving error about registry access:




Instead of spending hours messing up the the security in registry, simply run Windows Powershell as Administrator, and import the Operations Manager module, by using the “Import-Module OperationsManager” cmdlet. When this has been imported, run the Set-SCOMLicense command and you should succeed: