How to add a product key to the Eval version of System Center Operations Manager? how to solve System.UnauthorizedAccessException: You have exceeded the evaluation period of this product. Please upgrade to the retail version to continue using the product?
Error –
An exception was thrown while processing Connect for session ID uuid:5ab6d42f-8aaa-4893-9c58-de8c4298694c;id=4.
Exception message: You have exceeded the evaluation period of this product. Please upgrade to the retail version to continue using the product. For information on purchasing the retail version of this product, go to http://go.microsoft.com/fwlink/?LinkID=74446.
Full Exception: System.UnauthorizedAccessException: You have exceeded the evaluation period of this product. Please upgrade to the retail version to continue using the product. For information on purchasing the retail version of this product, go to http://go.microsoft.com/fwlink/?LinkID=74446.
at Microsoft.EnterpriseManagement.ServiceDataLayer.SessionManagerService.CheckLicence()
at Microsoft.EnterpriseManagement.ServiceDataLayer.SessionManagerService.Connect(SdkClientConnectionOptions options)
at Microsoft.EnterpriseManagement.ServiceDataLayer.BasicDispatcherService.Connect(SdkClientConnectionOptions connectionOptions)
Solution –
To set the product key, use the Set-SCOMLicense cmdlet in PowerShell.
Get your System Center Product key and follow the below steps to get your console open:
1. Run Windows PowerShell Modules as administrator
2. Run the following power shell cmdlet:
Import-Module OperationsManager
3. Then run the following cmdlet:
New-SCOMManagementGroupConnection
4. You might get the following error after running the command:
New-SCManagementGroupConnection : The service threw an unknown exception. See inner exception for details.
At line:1 char:34
+ New-SCOMManagementGroupConnection <<<<
+ CategoryInfo : InvalidOperation: (Microsoft.Syste…nnectionCommand:NewSCManagementGroupConnectionCommand) [New-SCManagementGroupConnection], UnknownServiceException
+ FullyQualifiedErrorId : ExecutionError,Microsoft.SystemCenter.Core.Commands.NewSCManagementGroupConnectionCommand
- This error is basically because the evaluation period already expired and hence we will not be able to connect to the Management Group. To workaround this, we need to change the date on the Management Server to a day where we were still in evaluation period. (1 or even 2 months back)
- Restart the System Center Data Access service and rerun the cmdlet New-SCOMManagementGroupConnection. It should work this time.
Note To use the Set-SCOMLicense cmdlet, you must use elevated permissions (Run as Administrator).
- Open PowerShell as an administrator.
- Load the OperationsManager module (import-module operationsmanager).
- Connect to your management group (New-SCOMManagementGroupConnection).
- Run the Set-SCOMLicense -ProductId “<yourlicensekey>“ command.
- To check whether the changes were made, run the following command:
Get-SCOMManagementGroup | ft skuforlicense, version, timeofexpiration –a
Note You may have to restart the computer to make sure that these changes are registered correctly.
And
If the Eval edition has expired, you must apply Update Rollup 2 or later before you run these commands.
Search Keywords – add SCOM product key, SCOM Eval version, System Center Operations Manager