Invoke-RASPAPromoteToPrimary

NAME

Invoke-RASPAPromoteToPrimary

SYNOPSIS

Promotes a RAS Publishing Agent to master.

SYNTAX

Invoke-RASPAPromoteToPrimary [-Server] <string> [[-SiteId] <uint>] [-PAPassword <SecureString>] [-PAUsername <string>] [<CommonParameters>]

Invoke-RASPAPromoteToPrimary [-Server] <string> [[-SiteId] <uint>] -Email <string> -Password <SecureString> [-Key <string>] [-MacAddress <string>] [-PAPassword <SecureString>] [-PAUsername <string>] [<CommonParameters>]

Invoke-RASPAPromoteToPrimary [-Id] <uint> [-PAPassword <SecureString>] [-PAUsername <string>] [<CommonParameters>]

Invoke-RASPAPromoteToPrimary [-Id] <uint> -Email <string> -Password <SecureString> [-Key <string>] [-MacAddress <string>] [-PAPassword <SecureString>] [-PAUsername <string>] [<CommonParameters>]

Invoke-RASPAPromoteToPrimary [-InputObject] <PA> [-PAPassword <SecureString>] [-PAUsername <string>] [<CommonParameters>]

Invoke-RASPAPromoteToPrimary [-InputObject] <PA> -Email <string> -Password <SecureString> [-Key <string>] [-MacAddress <string>] [-PAPassword <SecureString>] [-PAUsername <string>] [<CommonParameters>]

DESCRIPTION

Promotes a RAS Publishing Agent to master.

PARAMETERS


-Server <string>
The name of the RAS Publishing Agent server.

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

        Required?                    true
        Position?                    0
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-SiteId <uint>
Site ID of the RAS Publishing Agent server.

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

        Required?                    false
        Position?                    1
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false

-Id <uint>
The ID of the RAS Publishing Agent server.

        Required?                    true
        Position?                    0
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false

-InputObject <PA>
An object of type PA representing the RAS Publishing Agent.

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

        Required?                    true
        Position?                    0
        Default value                
        Accept pipeline input?       true (ByValue)
        Accept wildcard characters?  false

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

        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-Password <SecureString>
Your Parallels account password.

        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-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.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-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.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-PAUsername <string>
An administrator account for connecting with the new PA server (the one being promoted).

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

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-PAPassword <SecureString>
The password of the account specified in the PAUsername parameter.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        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 documentation. 

INPUTS

PA

OUTPUTS

-none-

EXAMPLES


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

Invoke-RASPAPromoteToPrimary "server.company.dom"

Promotes the specified RAS Publishing Agent (by server) to master.

NB. The newly promoted RAS Publishing Agent will not be activated.

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

Invoke-RASPAPromoteToPrimary -Id 5 -Email "name@company.com" -Password $SecretPass

Promotes the specified RAS Publishing Agent (by ID) to master and activates a new RAS Publishing Agent 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-RASPAPromoteToPrimary -InputObject $PA -Email "name@company.com" -Password $SecretPass -Key "QPWO-WRET-XVBC-IOUP"

Promotes the specified RAS Publishing Agent (by InputObject) to master and activates a new RAS Publishing Agent 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-RASPA -Id 2 | Invoke-RASPAPromoteToPrimary

Promotes the specified (by InputObject) RAS Publishing Agent server to master.

NB. The newly promoted RAS Publishing Agent will not be activated.

RELATED LINKS