Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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\username) 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

like image 716
stackoverflowuser Avatar asked Dec 28 '09 20:12

stackoverflowuser


People also ask

How do I change my credentials in TFS?

To dump this cache all you need to do is go to control panel > User Accounts > Manage Your Network Passwords select the Team foundation Server and choose remove – viola! Next time you go into Team Explorer you will be prompted for a new set of credentials.

How do I remove TFS credentials from Credential Manager?

1. Go to Control Panel (Start -> Control Panel). 5. Click on two credential's modify link, click the link Remove from vault to remove stored TFS credentials.

How do I connect to a TFS server?

Select the Manage Connections button in Team Explorer to open the Connect page. Choose Connect to Team Project to select a different organization, TFS, or project to connect to. Select the projects to work on. If it's your first time connecting, add TFS to the list of recognized servers.


2 Answers

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.

like image 67
SqlRyan Avatar answered Sep 28 '22 07:09

SqlRyan


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

like image 40
Gerrit Coetzee Avatar answered Sep 28 '22 06:09

Gerrit Coetzee