This documentation is archived and is not being maintained.


Use the TFSReg utility to modify, update, export, or delete all entries in the registration configuration file in Team Foundation Server.

The TFSReg command-line utility is located in <drive>:\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Tools on Team Foundation Server application tier. 


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.

Required Permissions

To use the TFSReg command, you must be a member of the sysadmin security group on the SQL Server for the Team Foundation data-tier server. For more information, see Team Foundation Server Permissions.

TFSReg [/D|/EXPORT] RegistrationXMLConfigurationFile TFSDataTierServerName [RegistrationDatabase] 




File name of the registration configuration file.


Data-tier database name.


Optional. Registration database name.




This option is used to delete all entries in the connections configuration file.


This option is used to write the current registration contents to the specified file.

During installation, the registration data must be included in the Team Foundation Server registration database. Do this by using the TFSReg command-line utility to use an XML file and the registration configuration file that represents the registration data.

The registration entries can be either added separately or all together. TFSReg supports delete, update and export operations. Default behavior is updating the registration entries. The /D option is used to delete the entries in the configuration file. The /Export option is used to export the current registration configuration file into a file that you specify.

You can also use the registration configuration file to configure an extension to Team Foundation Server, for example, you could add information to increase the capabilities of the Team Project Requirements Manager.

The following example deletes "MyConfigFile" from the data-tier called "MyDataTier".

TFSReg /D MyConfigFile MyDataTier 

The following example exports the current registration configuration file to the file "MyConfigFile.XML."

TFSReg /EXPORT MyConfigFile.XML MyDataTier