Link

Mount-TfsTeamProjectCollection

Attaches a team project collection database to a Team Foundation Server installation.


Table of Contents

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

Syntax

Use database server

Mount-TfsTeamProjectCollection
    [-Collection] <string>
    -DatabaseName <string>
    -DatabaseServer <string>
    [-Clone]
    [-Description <string>]
    [-InitialState <string>]
    [-PollingInterval <int>]
    [-Server <object>]
    [-Timeout <TimeSpan>]

Use connection string

Mount-TfsTeamProjectCollection
    [-Collection] <string>
    -ConnectionString <string>
    [-Clone]
    [-Description <string>]
    [-InitialState <string>]
    [-PollingInterval <int>]
    [-Server <object>]
    [-Timeout <TimeSpan>]

[Go to top]

Parameters

-Clone

Changes the internal collection IDs upon attaching to that a “clone” of the original collection can be attached to the same server.

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

-Collection (Aliases: Name)

Specifies the name of the collection to attach. It can be different from the original name - in that case, it is attached under a new name.

Type string
Position 0
Default Value (N/A)
Accept pipeline input False
Accept wildcard characters False

-ConnectionString

Specifies the connection string of the collection database.

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

-DatabaseName

Specifies the name of the collection database.

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

-DatabaseServer

Specifies the name of the SQL Server instance where the database is stored.

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

-Description

Specifies a new description for the collection. When omitted, it retains the original description.

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

-InitialState

Specifies whether the collection will be started ou stopped after being attached. When omitted, the collection is automatically started and goes online after being attached.

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

-PollingInterval

Specifies the polling interval (in seconds) to get an updated status from the server. When omitted, defaults to 5 seconds.

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

-Server

Specifies the URL to the Team Foundation Server to connect to, a TfsConfigurationServer object (Windows PowerShell only), or a VssConnection object. When omitted, it defaults to the connection set by Connect-TfsConfiguration (if any). For more details, see the Get-TfsConfigurationServer cmdlet.

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

-Timeout

Specifies the maximum period of time this cmdlet should wait for the attach procedure to complete. By default, it waits indefinitely until the collection servicing completes.

Type TimeSpan
Position (Named)
Default Value 10675199.02:48:05.4775807
Accept pipeline input False
Accept wildcard characters False

Inputs

System.Object

Specifies the URL to the Team Foundation Server to connect to, a TfsConfigurationServer object (Windows PowerShell only), or a VssConnection object. When omitted, it defaults to the connection set by Connect-TfsConfiguration (if any). For more details, see the Get-TfsConfigurationServer cmdlet.