tfs2010 还原配置数据错误tf254006解决方法

前端时间由于换了机器,想把之前的TFS搭建起来,需要把原服务器数据库中的Tfs_Configuration和Tfs_DefaultCollection还原到当前机器上。

配置过程中发生错误:TF254006

解决办法:

用管理员身份运行cmd(Win7操作系统 否则提示无权限之类的)

找到TFS安装目录下的Tools,我的路径是:D:Program FilesMicrosoft Team Foundation Server 2010Tools

(1)cmd进入D盘后,cd Program FilesMicrosoft Team Foundation Server 2010Tools

(2)TfsConfig.exe accounts /add /accountType:applicationtier /databasename:Tfs_Configuration /sqlinstance:XQ-PCSql2008 /account:XQ /password:123

参数说明:

sqlinstance:Sql实例  访问有问题的可以尝试用实例的服务端口(默认1433),写成192.168.1.36,1433这样
databasename:数据库名字,也就是之前存储你TFS数据的数据库名字(取在新的sqlinstance下恢复的数据库名字)
account:账户  Window的系统账户,我使用的管理员 
password:账户对应的密码

原文地址:https://www.cnblogs.com/softxu/p/3261379.html