Mount-TfsTeamProjectCollection
Attaches a team project collection database to a Team Foundation Server installation.
Table of Contents
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>]
Parameters
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 |
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 |
Specifies the connection string of the collection database.
Type | string |
Position | (Named) |
Default Value | (N/A) |
Accept pipeline input | False |
Accept wildcard characters | False |
Specifies the name of the collection database.
Type | string |
Position | (Named) |
Default Value | (N/A) |
Accept pipeline input | False |
Accept wildcard characters | False |
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 |
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 |
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 |
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 |
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 |
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.