> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/invoke-rasconnectionbrokerpromotetoprimary.md). Agents can also search and read this documentation through its [MCP server](https://docs.parallels.com/landing/~gitbook/mcp).

# Invoke-RASConnectionBrokerPromoteToPrimary

## SYNOPSIS

Promotes a RAS Connection Broker to the primary Connection Broker.

## SYNTAX

```powershell
Invoke-RASConnectionBrokerPromoteToPrimary [-Id] <uint> [-BrokerPassword <SecureString>]
 [-BrokerUsername <string>] [<CommonParameters>]
```

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

```powershell
Invoke-RASConnectionBrokerPromoteToPrimary [-InputObject] <ConnectionBroker>
 [-BrokerPassword <SecureString>] [-BrokerUsername <string>] [<CommonParameters>]
```

```powershell
Invoke-RASConnectionBrokerPromoteToPrimary [-InputObject] <ConnectionBroker> -Email <string>
 -Password <SecureString> [-BrokerPassword <SecureString>] [-BrokerUsername <string>]
 [-Key <string>] [-MacAddress <string>] [<CommonParameters>]
```

```powershell
Invoke-RASConnectionBrokerPromoteToPrimary [-Server] <string> [[-SiteId] <uint>]
 [-BrokerPassword <SecureString>] [-BrokerUsername <string>] [<CommonParameters>]
```

```powershell
Invoke-RASConnectionBrokerPromoteToPrimary [-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.

## EXAMPLES

### Example 1

```powershell
Invoke-RASConnectionBrokerPromoteToPrimary "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

```powershell
Invoke-RASConnectionBrokerPromoteToPrimary -Id 5 -Email "name@company.com" -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

```powershell
Invoke-RASConnectionBrokerPromoteToPrimary -InputObject $Broker -Email "name@company.com" -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

```powershell
Get-RASConnectionBroker -Id 2 | Invoke-RASConnectionBrokerPromoteToPrimary
```

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.

## PARAMETERS

### -Server

The name of the RAS Connection Broker server.

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

```yaml
Type: string
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SiteId

Site ID of the RAS Connection Broker server.

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

```yaml
Type: uint
Required: False
Position: 1
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### -Id

The ID of the RAS Connection Broker server.

```yaml
Type: uint
Required: True
Position: 0
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### -InputObject

An object of type Broker representing the RAS Connection Broker.

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

Type reference: [ConnectionBroker](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/connectionbroker.md)

```yaml
Type: ConnectionBroker
Required: True
Position: 0
Default value: None
Accept pipeline input: true (ByValue)
Accept wildcard characters: False
```

### -Email

The email address you use to log in to Parallels My Account.

```yaml
Type: string
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Password

Your Parallels account password.

```yaml
Type: SecureString
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Key

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.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -MacAddress

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.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -BrokerUsername

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.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -BrokerPassword

The password of the account specified in the BrokerUsername parameter.

```yaml
Type: SecureString
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### [ConnectionBroker](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/connectionbroker.md)

## OUTPUTS

### None

## RELATED LINKS

* [Get-RASConnectionBroker](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/get-rasconnectionbroker.md)
* [Set-RASConnectionBrokerPriority](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-rasconnectionbrokerpriority.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/invoke-rasconnectionbrokerpromotetoprimary.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
