Click or drag to resize

Set-DtActivationCode

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. For this cmdlet, the -ServiceHost could be your source or target server.

Syntax

Set-DtActivationCode [-Code] <String[]> [-AdditionalCode] <String[]> [-ActivationKey] <String> [-ServiceHost] <Server> [<CommonParameters>]

Parameters
-Code<String[]>

Specify the 24-character, alpha-numeric license key which applies the appropriate Double-Take license to your Double-Take server. Specify multiple keys in an array using the format @(code1, code2).

Required?

true

Position?

2

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-AdditionalCode<String[]>

Specify any additional license keys. Specify multiple keys in an array using the format @(code1, code2).

Required?

false

Position?

named

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-ActivationKey<String>

Specify the 24-character, alpha-numeric activation key which activates your Double-Take license.

Required?

false

Position?

named

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-ServiceHost<Server>

Specify the server object returned from the New-DtServer cmdlet.

Required?

true

Position?

1

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.

Examples

------------------EXAMPLE 1------------------

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

Set-DtActivationCode -ServiceHost $DtServerObjectAlpha -Code 1234567890abcdefghij1234

Disconnect-DtServer -ServiceHost $DtServerObjectAlpha

------------------EXAMPLE 2------------------

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.

$DtServerObjectAlpha= New-DtServer -Name alpha -UserName domain\administrator -Password password

Get-DtOnlineActivationRequest -ServiceHost $DtServerObjectAlpha | Request-DtOnlineActivation | Set-DtActivationCode

Disconnect-DtServer -ServiceHost $DtServerObjectAlpha