Just like previous versions of Operations Manager, all SCOM deployments are installed as “Evaluation Version” which is a 180 trial. You DON’T want to forget about this and have your production and lab deployments time-bomb on you down the road.
To see your current license, in PowerShell on a SCOM server:
Get-SCOMManagementGroup | ft skuforlicense, timeofexpiration -a
In order to set your license – you just need to run the Set-SCOMLicense cmdlet. This is documented here:
1. You need to get your license key, from whomever keeps that information for your company.
2. The best place to run this is on one of your SCOM management servers.
2. You MUST run this cmdlet in a PowerShell sessions launched “As an administrator” as this will need access to write to the registry.
3. You must run this cmdlet as a user who has write access to the OperationsManager database.
Run this command ONE time on ANY management server…..
Set-SCOMLicense -ProductId ‘99999-99999-99999-99999-99999’
…… where you change the example key above to your key.
You should restart the PowerShell session, then run the command to get the license again.
(Note: You might have to restart you management server services or reboot the management server before you see this take effect)
Issue #1: You run the cmdlet – and you get the following response: Set-SCOMLicense : Requested registry access is not allowed.
Resolution: Run the cmdlet in a PowerShell window “As an administrator”. You must be logged in with an account that has local administrator rights on the SCOM server, AND running under a PowerShell session that is elevated.
Issue #2: You run the cmdlet, and it just hangs, and never does anything.
Resolution: This will happen when you are running the command as a local administrator, but do NOT have the rights to the OperationsManager database. The Set-SCOMLicense command will write directly to the OperationsManager database. You need to run this command as a user account that has local administrator rights to the local management server, AND has the appropriate rights to the SCOM OperationsManager database. DBO user right over the OperationsManager DB is enough permission.
Issue #3: You run the cmdlet, and get back an error: Set-SCOMLicense : The product key is not valid. Please enter a valid product key.
Resolution: This will happen when you have invalid characters in your product key you are supplying. This can happen easily when you copy and paste the Product Id, use invalid quotes, or mistype the ID. Try again without any quotes, or open a new PowerShell window and re-run the command but type it out fully – do not paste the key.