After installing System Center Operations Manager (SCOM) 2012 R2 it is necessary to enter the product key. This can be done by the Operations Manager Shell, but if the command Set-SCOMLicense -ProductId <Product Key> was entered the message: set-scomlicense: Requested registry access is not allowed may appear (Figure 1).
Figure 1. SCOM PowerShell License key error
To rapidly add the Operations Manager product key the following steps should be taken:
- Open the standard Windows PowerShell console as an Administrator.
- Type the following command: Import-Module OperationsManager
- Enter the following command: Set-SCOMLicense -ProductId <Product Key>
This way you can quickly activate Operations Manager without editing the registry settings. Don’t forget to restart the Operations Manager server.
I found this solution on Michael Skov’s his blog, which can be found here. Many thanks Michael for sharing this solution.