开发者

Connect to TFS with different user credentials

I am connecting to TFS through Visual Studio 2008 Team Explorer. Lets say TFS is on machine A and Visual Studio 2008 is on machine B (my box). I have a local account on machine A (i.e. A\username) that has admin privileges for TFS (installed on machine A). Whenever I connect to TFS from team explorer it always uses the my domain credentials (companydomain\userna开发者_如何学Pythonme) to connect to TFS. I want to be able to specify a different account (i.e. A\username) while connecting.

How can this be done? Thanks.

Also solutions similar to below do not work for me since there is no entry present in the "Manage password" dialog.

http://blogs.msdn.com/davidmcg/archive/2007/05/25/changing-team-foundation-server-credentials.aspx


I think you're looking for the RUNAS command with the /NETONLY switch:

runas /netonly /user:domain\username program.exe

When you use the "/netonly" switch, you can log in using remote credentials on a domain that you're not even currently a member of, even if there's no trust set up. It just tells runas that the credentials will be used for accessing remote resources - I believe the application interacts with the local computer as the current user, and interacts with remote computers as the user you've given.


Clear the user's credentials in the Credential Manager. This will then bring back the Authentication Window when trying to connect to TFS.


Also solutions similar to below do not work for me since there is no entry present in the "Manage password" dialog.

http://blogs.msdn.com/davidmcg/archive/2007/05/25/changing-team-foundation-server-credentials.aspx

You should be able to add a new entry. More detailed instructions: http://weblogs.asp.net/srkirkland/archive/2009/09/24/save-your-codeplex-repository-credentials.aspx


In Windows 7, you can do a Shift Right click on the Visual Studio 10 icon and get the "Run as different user" option. That will bring up a logon dialog where you can specify the user's credentials.


You could try connecting to the TFS machine using windows explorer before you connect via TFS. When you connect to the machine use the "connect as" option to specify the user that you want to connect with.

If that does not work try mapping a drive using "connect as".


You can try the "Run As" option. Instead of d-click the devenv icon, right click on it and choose "Run As".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜