Link

Get-TfsConfigurationServerConnectionString

Gets the configuration server database connection string.


Table of Contents

  1. Syntax
  2. Parameters
  3. Outputs
  4. Related Links

Syntax

Use computer name

Get-TfsConfigurationServerConnectionString
    [-ComputerName <string>]
    [-Credential <PSCredential>]
    [-Version <int>]

Use session

Get-TfsConfigurationServerConnectionString
    -Session <PSSession>
    [-Credential <PSCredential>]
    [-Version <int>]

[Go to top]

Parameters

-ComputerName

Specifies the name of a Team Foundation Server application tier from which to retrieve the connection string.

Type string
Position (Named)
Default Value localhost
Accept pipeline input False
Accept wildcard characters False

-Credential

The user credentials to be used to access a remote machine. Those credentials must have the required permission to execute a PowerShell Remote session on that computer.

Type PSCredential
Position (Named)
Default Value System.Management.Automation.PSCredential
Accept pipeline input False
Accept wildcard characters False

-Session

The machine name of the server where the TFS component is installed. It must be properly configured for PowerShell Remoting in case it’s a remote machine. Optionally, a System.Management.Automation.Runspaces.PSSession object pointing to a previously opened PowerShell Remote session can be provided instead. When omitted, defaults to the local machine where the script is being run

Type PSSession
Position (Named)
Default Value (N/A)
Accept pipeline input False
Accept wildcard characters False

-Version

The TFS version number, represented by the year in its name. For e.g. TFS 2015, use “2015”. When omitted, will default to the newest installed version of TFS / Azure DevOps Server

Type int
Position (Named)
Default Value 0
Accept pipeline input False
Accept wildcard characters False

Outputs

System.String