Set-SCOMLicense
設定產品授權等級並移除評估逾時。
Syntax
Set-SCOMLicense
-ManagementServer <String>
[-ProductId] <String>
-Credential <PSCredential>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Set-SCOMLicense Cmdlet 會設定 System Center - Operations Manager 產品授權等級,並移除評估到期逾時。 若要檢視目前的授權條款,請使用 Get-SCOMLicense Cmdlet。 您也可以在 [Operations Console 說明相關] 對話框中檢視授權資訊。
您必須以系統管理員身分執行 Windows PowerShell,才能使用此 Cmdlet。
根據預設,此 Cmdlet 會使用與管理群組的作用中持續性連線。
使用 SCSession 參數來指定不同的持續性連線。
您可以使用 ComputerName 和 Credential 參數,建立與管理群組的暫時連線。
如需詳細資訊,請鍵入 Get-Help about_OpsMgr_Connections
。
輸入授權密鑰之後,請在所有 Operations Manager 管理伺服器上重新啟動 System Center Data Access Service。
範例
範例 1:設定產品授權
PS C:\>Set-SCOMLicense -ProductId 'C97A1C5E-6429-4F71-8B2D-3525E237BF62'
此命令會設定具有指定標識碼之產品的產品授權等級。
參數
-Confirm
在執行 Cmdlet 前提示您確認。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
指定管理群組連線將在其下執行的使用者帳戶。 如果指定,它必須能夠存取 ManagementServer 參數中指定的伺服器。 預設為目前使用者。
輸入 PSCredential 物件,例如由 Get-Credential Cmdlet 所傳回的物件。
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ManagementServer
指定管理伺服器物件的陣列。 若要取得管理伺服器物件,請使用 Get-SCOMManagementServer Cmdlet。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProductId
指定產品識別碼。
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
顯示執行 Cmdlet 後會發生的情況。 Cmdlet 並不會執行。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |