Set-SCOMLicense
Sets the product license level and removes evaluation timeout.
Syntax
Default (Default)
Set-SCOMLicense
-ManagementServer <String>
[-ProductId] <String>
-Credential <PSCredential>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Set-SCOMLicense cmdlet sets the System Center - Operations Manager product license level and removes the evaluation expiration timeout. To view the current license terms, use the Get-SCOMLicense cmdlet. You can also view the license information in the Operations Console Help About dialog box.
You must run Windows PowerShell as an administrator to use this cmdlet.
By default, this cmdlet uses the active persistent connection to a management group.
Use the SCSession parameter to specify a different persistent connection.
You can create a temporary connection to a management group by using the ComputerName and Credential parameters.
For more information, type Get-Help about_OpsMgr_Connections
.
After you enter a license key, restart the System Center Data Access Service on all of your Operations Manager management servers.
Examples
Example 1: Set a product license
PS C:\>Set-SCOMLicense -ProductId 'C97A1C5E-6429-4F71-8B2D-3525E237BF62'
This command sets the product license level for the product with the specified ID.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Credential
Specifies a user account under which the management group connection will run. It must have access to the server that is specified in the ManagementServer parameter if specified. The default is the current user.
Enter a PSCredential object, such as one that is returned by the Get-Credential cmdlet.
Parameter properties
Type: | PSCredential |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ManagementServer
Specifies an array of management server objects. To obtain a management server object, use the Get-SCOMManagementServer cmdlet.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ProductId
Specifies the product ID.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.