Sets the Double-Take activation code
Syntax
Set-DtActivationCode [-ServiceHost] <Server> [-Code] <String[]> [-AdditionalCode <String[]>] [-ActivationKey <String>] [<CommonParameters>]
Detailed Description
This cmdlet sets the Double-Take activation code on the specified server. It also returns the Double-Take activation code validation information from the Get-DtActivationStatus cmdlet.
Parameters
Name | Type | Description | Required | Pipeline Input |
---|---|---|---|---|
Service Host |
Server |
|
true | true |
Code | String |
Specify the 24-character, alpha-numeric activation code(s) which applies the appropriate Double-Take license to your Double-Take server. Specify multiple codes in an array using the format @(code1, code2). |
true | true |
Additional Code |
String |
Specify any additional activation codes, such as activation keys. Specify multiple codes in an array using the format @(code1, code2). |
false | false |
Activation Key |
String |
Specify the 24-character, alpha-numeric activation key which activates your Double-Take license. |
false | false |
Outputs
Examples
$DtServerObjectAlpha= New-DtServer -Name alpha -UserName domain\administrator -Password password Set-DtActivationCode -ServiceHost $DtServerObjectAlpha -Code 1234567890abcdefghij1234 Disconnect-DtServer -ServiceHost $DtServerObjectAlpha |
A server object is created for the server alpha using the domain\administrator and password credentials. It assigns the server object to the variable called DtServerObjectAlpha. Then the activation code 1234567890abcdefghij1234 is applied to the server. The server returns the activation code information. The connections for the server object are then closed.
$DtServerObjectAlpha= New-DtServer -Name alpha -UserName domain\administrator -Password password Get-DtOnlineActivationRequest -ServiceHost $DtServerObjectAlpha | Request-DtOnlineActivation | Set-DtActivationCode Disconnect-DtServer -ServiceHost $DtServerObjectAlpha |
A server object is created for the server alpha using the domain\administrator and password credentials. It assigns the server object to the variable called DtServerObjectAlpha. The server information for the online activation process is returned. The output from the Get-DtOnlineActivationRequest cmdlet is piped directly to Request-DtOnlineActivation, which activates the license online, and then that output (from Request-DtOnlineActivation) is piped directory to Set-DtActivationCode to set the activation key on the server.The connections for the server object are then closed.