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
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With