“以不同用户身份运行"Visual Studio,无法清除缓存的 TFS 凭据 [英] "Run as different user" Visual Studio, cannot clear cached TFS credentials
问题描述
更新我设法通过授予我的用户使用凭据集 2 远程连接到桌面的权限来解决它,从而能够从凭据管理器中删除存储的凭据.
Update I managed to solve it by getting my user granted permissions to remotely connect to the desktop using credential set 2 and thus being able to remove the stored credentials from Credential Manager.
我使用一组凭据登录我的服务器并使用以不同用户身份运行"(Shift + 右键单击)打开 Visual Studio 2012,因为我需要一个要部署到我的开发人员的第二组凭据.环境SharePoint 网站.
I log onto my server with one set of credentials and open Visual Studio 2012 using "Run as different user" (Shift + Right-click) as I need a second set of credentials to deploy to my dev. env. SharePoint site.
我之前完成了上述操作,然后使用第三组凭据连接到 TFS,因为我的用户(第二组凭据)还没有访问权限.现在我的用户可以访问,我希望改用这些凭据.
每次我使用以不同用户身份运行"打开 VS 时,TFS 都会自动使用第三组凭据登录我 - 但是,如果我在不使用以不同用户身份运行"的情况下正常打开 VS,我会收到登录 TFS 的提示.
I have previously done above and then connected to TFS using a third set of credentials, as the my user (second set credentials) didn't have access yet. Now my user have access and I wish to use these credentials instead.
TFS automatically logs me in with the third set credentials every time I open VS using "Run as different user" - However, if I open VS normally without using "Run as different user" I get prompted for login to the TFS.
我已尝试检查 Windows 凭据,但什么也没有.而且我无法使用第二组凭据登录服务器,因为只有第一组凭据才能使用远程桌面访问服务器.
I have tried checking the Windows credentials and there is nothing there. And I can't log onto the server using the second set credentials as only the first set can access the server with Remote Desktop.
那么在使用以不同用户身份运行"时如何清除"缓存的 TFS 凭据?
So how do I "clear" cached TFS credentials when using "Run as different user"?
推荐答案
转到控制面板 > 用户帐户 > 管理您的凭据 > 选择您的 Team Foundation Server 并选择删除/编辑 - viola!下次您进入 Team Explorer 时,系统会提示您输入一组新凭据.
Go to control panel > User Accounts > Manage Your Credentials > select your Team foundation Server and choose remove/edit - viola! Next time you go into Team Explorer you will be prompted for a new set of credentials.
这篇关于“以不同用户身份运行"Visual Studio,无法清除缓存的 TFS 凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!