Invoke-RASBrokerPromoteToPrimary

NAME

Invoke-RASBrokerPromoteToPrimary

SYNOPSIS

Promotes a RAS Connection Broker to the primary Connection Broker.

SYNTAX

Invoke-RASBrokerPromoteToPrimary [-Id] <uint> [-BrokerPassword <SecureString>] [-BrokerUsername <string>] [<CommonParameters>]

Invoke-RASBrokerPromoteToPrimary [-Id] <uint> -Email <string> -Password <SecureString> [-BrokerPassword <SecureString>] [-BrokerUsername <string>] [-Key <string>] [-MacAddress <string>] [<CommonParameters>]

Invoke-RASBrokerPromoteToPrimary [-InputObject] <Broker> [-BrokerPassword <SecureString>] [-BrokerUsername <string>] [<CommonParameters>]

Invoke-RASBrokerPromoteToPrimary [-InputObject] <Broker> -Email <string> -Password <SecureString> [-BrokerPassword <SecureString>] [-BrokerUsername <string>] [-Key <string>] [-MacAddress <string>] [<CommonParameters>]

Invoke-RASBrokerPromoteToPrimary [-Server] <string> [[-SiteId] <uint>] [-BrokerPassword <SecureString>] [-BrokerUsername <string>] [<CommonParameters>]

Invoke-RASBrokerPromoteToPrimary [-Server] <string> [[-SiteId] <uint>] -Email <string> -Password <SecureString> [-BrokerPassword <SecureString>] [-BrokerUsername <string>] [-Key <string>] [-MacAddress <string>] [<CommonParameters>]

DESCRIPTION

Promotes a RAS Connection Broker to the primary Connection Broker.

When promoting a Connection Broker in a non-primary Site, the Email, Password, Key, and MacAddress will be ignored.

PARAMETERS

-Server <string> The name of the RAS Connection Broker server.

This must be the actual server name used in the Parallels RAS farm.

-SiteId <uint> Site ID of the RAS Connection Broker server.

If the parameter is omitted, the Licensing Server site ID will be used.

-Id <uint> The ID of the RAS Connection Broker server.

-InputObject <Broker> An object of type Broker representing the RAS Connection Broker.

To obtain the object, use the Get-RASBroker cmdlet.

-Email <string> The email address you use to log in to Parallels My Account.

-Password <SecureString> Your Parallels account password.

-Key <string> Parallels RAS License Key. The key must be registered in Parallels My Account.

If you omit this parameter, the current license key will be used in activation.

-MacAddress <string> Bind the license activation with a specific MAC address.

The MAC address should be in the format XX-XX-XX-XX-XX-XX.

To select a MAC address automatically, omit this parameter.

-BrokerUsername <string> An administrator account for connecting with the new Connection Broker server (the one being promoted).

If this parameter is omitted, your RAS admin username (and password) will be used.

-BrokerPassword <SecureString> The password of the account specified in the BrokerUsername parameter.

<CommonParameters>

INPUTS

Broker

OUTPUTS

-none-

EXAMPLES

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

Invoke-RASBrokerPromoteToPrimary "server.company.dom"

Promotes the specified RAS Connection Broker (by server) to the primary Connection Broker.

NB. The newly promoted RAS Connection Broker will not be activated. ---------- EXAMPLE 2 ----------

Invoke-RASBrokerPromoteToPrimary -Id 5 -Email "[email protected]" -Password $SecretPass

Promotes the specified RAS Connection Broker (by ID) to the primary Connection Broker and activates a new RAS Connection Broker license with same license key.

The $SecretPass variable must contain a password as SecureString.

If you omit the -Password parameter, you'll be asked to enter it when you execute the cmdlet. ---------- EXAMPLE 3 ----------

Invoke-RASBrokerPromoteToPrimary -InputObject $Broker -Email "[email protected]" -Password $SecretPass -Key "QPWO-WRET-XVBC-IOUP"

Promotes the specified RAS Connection Broker (by InputObject) to the primary Connection Broker and activates a new RAS Connection Broker license using the specified key.

The $SecretPass variable must contain a password as SecureString.

If you omit the -Password parameter, you'll be asked to enter it when you execute the cmdlet. ---------- EXAMPLE 4 ----------

Get-RASBroker -Id 2 | Invoke-RASBrokerPromoteToPrimary

Promotes the specified (by InputObject) RAS Connection Broker server to the primary Connection Broker.

NB. The newly promoted RAS Connection Broker will not be activated.

Last updated