Import-TfsGlobalList
Imports one or more Global Lists from an XML document
Table of Contents
Syntax
Import-TfsGlobalList
-InputObject <object>
[-Collection <object>]
[-Force]
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”
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
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 |
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 |
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.