|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Use the glimport command to import global lists from an XML file to a team project on Team Foundation Server. If you try to import a global list that already exists in the specified team project, a warning prompt asks if you want to overwrite the existing global list. If a global list does not already exist, a new one will be created. For more information about global lists, see Global Lists.
The glimport command-line utility is located in DriveLetter:\Program Files\Visual Studio 9.0\Common7\IDE on Team Explorer client computer.
To use the glimport command, you must be a member of the Team Foundation Administrators security group or the Project Administrators security group. For more information, see Team Foundation Server Permissions and Team Foundation Server Default Groups, Permissions, and Roles.
Even if you are logged on with administrative credentials, you must open an elevated Command Prompt to perform this function on a server that is running Windows Server 2008. To open an elevated Command Prompt, click Start, right-click Command Prompt, and click Run as Administrator. For more information, see the Microsoft Web site.
The path to the global lists XML definition file to be imported.
If you are running Windows Vista, you might not have access rights to certain folders. If you try to export the global list to a location where you do not have access rights, the registry virtualization technology automatically redirects the exported file and saves it to the virtual store. For more information, see http://go.microsoft.com/fwlink/?LinkId=92325 and http://go.microsoft.com/fwlink/?LinkId=92323. To avoid this redirection, you can export the file to a location where you have access rights.
The computer name of the Team Foundation server from which the global lists will be imported, or a fully specified URL for a Team Foundation server.
The name of a .NET Framework 2.0 encoding format. The specified encoding will be used to import the global lists XML. By default, if this argument is not specified, glimport uses UTF-8 encoding.
Displays the glimport context help.
The following example reads the file named mygloballists.xml and imports it to the Team Foundation server named AdventureWorksServer. The example imports the global lists using the default UTF-8 encoding.
>glimport /f mygloballists.xml /t AdventureWorksServer
The following example shows how to use a URL instead of a Team Foundation server name. The example imports the global lists using the default UTF-8 encoding and the default 8080 port configuration.
>glimport /f mygloballists.xml /t http://TFS:8080
The following example imports the global lists using Unicode (UTF-7) encoding.
>glimport /f mygloballists.xml /t AdventureWorksServer /e utf-7