Product Documentation

Get-BrokerInstalledDbVersion

Nov 11, 2015

Gets Citrix Broker Service database schema version information.

Syntax

Get-BrokerInstalledDbVersion [-Upgrade] [-Downgrade] [-AdminAddress <String>] [<CommonParameters>]

Detailed Description

Gets the current version number of the Citrix Broker Service database schema when called with no parameters.

When called with the -Upgrade parameter, gets the service schema version numbers to which an upgrade could be performed.

When called with the -Downgrade parameter, gets the service schema version numbers to which a downgrade could be performed.

The SQL scripts to perform schema upgrades and downgrades can be obtained using the Get-BrokerDBVersionChangeScript cmdlet. Citrix recommends that where possible service schema upgrades are performed using Studio rather than manually via the SDK.

Only one of the -Upgrade or -Downgrade parameters may be supplied at once.

Parameters

-Upgrade<SwitchParameter>

Lists schema version numbers to which the current service schema could be upgraded.

Required? false
Default Value  
Accept Pipeline Input? false

-Downgrade<SwitchParameter>

Lists schema version numbers to which the current service schema could be downgraded.

Required? false
Default Value  
Accept Pipeline Input? false

-AdminAddress<String>

Specifies the address of a XenDesktop controller that the PowerShell snapin will connect to. This can be provided as a host name or an IP address.

Required? false
Default Value Localhost. Once a value is provided by any cmdlet, this value will become the default.
Accept Pipeline Input? false

Input Type

None You cannot pipe input into this cmdlet.

Return Values

System.Version

Get-BrokerInstalledDBVersion returns database schema version numbers as requested.

Examples

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

C:\PS> Get-BrokerInstalledDBVersion

Gets the current Citrix Broker Service database schema version number.

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

C:\PS> Get-BrokerInstalledDBVersion -Upgrade

Gets the Citrix Broker Service database schema version numbers to which the service schema could be upgraded.