|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.|
Use the glexport command-line utility to export an XML definition for global lists from Team Foundation Server. You can also use this command to display an XML definition. For more information about global lists, see Global Lists.
The glexport command-line utility is located in DriveLetter:\Program Files\Visual Studio 9.0\Common7\IDE on Team Explorer client computer.
To use the glexport 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 XML file where all global lists on the Team Foundation server will be exported. If you omit this parameter, the XML is exported to the server's display.
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 to which the global lists are to be exported, 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 export the global lists XML. By default, if this argument is not specified, glexport uses UTF-8 encoding.
Displays the glexport context help.
The following example exports the global lists mygloballists from the Team Foundation server named AdventureWorksServer to the file named mygloballists.xml. This example exports the global lists using the default UTF-8 encoding.
>glexport /f mygloballists.xml /t AdventureWorksServer
The following example shows how to use a URL instead of a Team Foundation server name. The example exports the global lists using the default UTF-8 encoding and the default 8080 port configuration.
>glexport /f mygloballists.xml /t http://TFS:8080
The following example exports the global lists using Unicode (UTF-7) encoding.
>glexport /f mygloballists.xml /t AdventureWorksServer /e utf-7
The following example exports the global lists to the display instead of to a file. The example exports the global lists using the default UTF-8 encoding and the default 8080 port configuration.
>glexport /t http://TFS:8080