Link

Import-TfsGlobalList

Imports one or more Global Lists from an XML document


Table of Contents

  1. Syntax
  2. Description
  3. Examples
  4. Parameters
  5. Inputs
  6. Related Links

Syntax

Import-TfsGlobalList
    -InputObject <object>
    [-Collection <object>]
    [-Force]

[Go to top]

Description

This cmdletsimports an XML containing one or more global lists and their respective items, in the same format used by witadmin. It is functionally equivalent to “witadmin importgloballist”

[Go to top]

Examples

Example 1

Imports the contents of an XML document called gl.xml to the current project collection

PS> Get-Content gl.xml | Import-GlobalList

Parameters

-Collection

Specifies the URL to the Team Project Collection or Azure DevOps Organization to connect to, a TfsTeamProjectCollection object (Windows PowerShell only), or a VssConnection object. You can also connect to an Azure DevOps Services organizations by simply providing its name instead of the full URL. For more details, see the Get-TfsTeamProjectCollection cmdlet. When omitted, it defaults to the connection set by Connect-TfsTeamProjectCollection (if any).

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

-Force

Allows the cmdlet to overwrite a global list that already exists.

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

-InputObject (Aliases: Xml)

XML document object containing one or more global list definitions.

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

Inputs

System.Object

XML document object containing one or more global list definitions.