So you are trying to apply the SCOM 2012R2 Product Licence with the Operations Manager Shell and getting the following error, “Set-SCOMLicense : Requested registry access is not allowed.”
Try launching PowerShell (as Administrator), importing the OperationsManager Module, and trying it again.
Don’t forget, in order for the Product Key to be applied, you will need to restart all SCOM Services:
- Microsoft Monitoring Agent (healthservice)
- System Center Data Access Service (OMSDK)
- System Center Management Configuration (cshost)