Link

New-TfsTeamProjectCollection

Creates a new team project collection.


Table of Contents

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

Syntax

Use database server

New-TfsTeamProjectCollection
    [-Collection] <object>
    -DatabaseServer <string>
    [-DatabaseName <string>]
    [-Default]
    [-Description <string>]
    [-InitialState <string>]
    [-Passthru]
    [-PollingInterval <int>]
    [-Server <object>]
    [-Timeout <TimeSpan>]
    [-UseExistingDatabase]

Use connection string

New-TfsTeamProjectCollection
    [-Collection] <object>
    -ConnectionString <string>
    [-Default]
    [-Description <string>]
    [-InitialState <string>]
    [-Passthru]
    [-PollingInterval <int>]
    [-Server <object>]
    [-Timeout <TimeSpan>]
    [-UseExistingDatabase]

[Go to top]

Parameters

-Collection (Aliases: Name)

Specifies the name of the team project collection to create.

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

-ConnectionString

Specifies the connection string for the team project collection.

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

-DatabaseName

Specifies the name of the team project 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 for hosting the team project collection database.

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

-Default

Specifies whether new the team project collection should become the default collection.

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

-Description

Specifies the description of the team project collection.

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

-InitialState

Specifies the initial state of the team project collection. This allows you to create a collection in a stopped state when needed.

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

-Passthru

Returns the results of the command. By default, this cmdlet does not generate any output.

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

-PollingInterval

Specifies the frequency (in seconds) at which the command will check whether the creation is completed.

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 False
Accept wildcard characters False

-Timeout

Specifies the timeout to wait for the operation to complete. When omitted, will wait indefinitely until the operation completes.

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

-UseExistingDatabase

Specifies whether to use an existing database for the team project collection.

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

Inputs

System.Object

Specifies the name of the team project collection to create.

Outputs

TfsCmdlets.Models.Connection