I have just completed a fresh install of SCOM 2012 R2 and on completion the install needs to be licensed. This process is unnecessarily cumbersome.
- Run Powershell as administrator.
- import-module operationsmanager and hit return.
This loads the SCOM Powershell module.
- New-SCOMManagementGroupConnection -ComputerName OPS1SVR and hit return.
This creates the connection to the SCOM server, OPS1SVR in this instance.
- Get-SCOMManagementGroupConnection and hit return.
This is just to check the connection to the SCOM server is OK.
- Set-SCOMLicense -ProductId “xxxxx-xxxxxx-xxxxx-xxxxx-xxxxx” and hit return.
This loads the product key – replace all the “xxxxx” bits as appropriate.
- Get-SCOMManagementGroup | ft skuforlicense, version, timeofexpiration –a and hit return.
This displays the details of the installed license. When I did this it still showed the evaluation license details.
- Restart the server!!
- After the restart run Powershell as administrator again.
- Get-SCOMManagementGroup | ft skuforlicense, version, timeofexpiration –a and hit return.
The full license details should now be displayed.