如何重新获得对Team Foundation Server工作区的访问权限? [英] How can I regain access to my Team Foundation Server Workspace?

查看:187
本文介绍了如何重新获得对Team Foundation Server工作区的访问权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在TFS服务器上重新启动了IIS,从那以后我一直无法访问我的工作区.

I restarted IIS on our TFS server, and ever since then I haven't been able to access my workspace.

无论我做什么,它都会不断创建一个服务帐户而非我的公司帐户所拥有的工作区.

Regardless of what I do, it continually creates a workspace owned by a service account, and not my corporate account.

几天前,我使用以其他用户身份运行"打开了SSMS 2008,并使用了该服务帐户.这是我认为它进入照片的唯一方法.

A couple days ago I had opened SSMS 2008 with "Run as different user" and used that service account. That's the only way I can think that it got in the picture.

因此,如果我运行tf workspaces /owner:*,我会看到两个工作区,一个工作区归我所有,另一个由服务拥有.

So if I run tf workspaces /owner:* I see two workspaces, one owned by me, and one owned by the service.

当我打开VS2010时,它将加载服务帐户拥有的工作空间,而我无法查看其他工作空间.在错误的地方运行tf /delete会删除它,然后运行tf /remove:*会清除我的缓存,但是当我打开VS2010时,会再次创建它.

When I open VS2010, it loads the workspace owned by the service account, and I can't view the other workspaces. Running tf /delete on the wrong one deletes it and running tf /remove:* clears my cache, but when I open VS2010, it is created again.

我尝试使用以其他用户身份运行"来运行VS2010,并使用了我的凭据,但是没有运气.

I tried running VS2010 with "Run as different user" and used my credentials, with no luck.

有人对如何找回我的工作区有任何想法吗?

Anyone have any ideas as to how to get my workspace back??

推荐答案

您可以使用/newowner标志更改为tf workspace命令来更改工作区的所有者.例如:

You can change the owner of a workspace using the /newowner flag to the tf workspace command. For example:

tf workspace /collection:http://server:8080/DefaultCollection workspaceName;oldOwner /newowner:newOwner

这应该是权宜之计,以允许您的旧工作空间归服务帐户所有.要更新此信息,请确保没有在控制面板->凭据管理器中为TFS服务器保存凭据.这些凭据将始终覆盖您登录的用户凭据或为runas指定的任何内容.

This should work as a stopgap measure to allow your old workspace to be owned by the service account. To update this, make sure that you do not have credentials saved for your TFS server in Control Panel -> Credential Manager. These credentials will always override your logged in user credentials or anything specified to runas.

这篇关于如何重新获得对Team Foundation Server工作区的访问权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆