August 29th, 2012

Clearing the credentials for connecting to a Team Foundation Server

Ran in to a situation a couple of days ago where i needed to log into a Team Foundation Server as a different user – and since Visual Studio/Team Explorer “remembers” your last credentials you don’t have a chance to re-enter these credentials.  This information is cached even after removing and re-adding the server in team explorer.  Which begs the question – where is it cached?

image

Turns out we are relying on Windows to do this for us.  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. 

image

image

3 comments

Discussion is closed. Login to edit/delete existing comments.

  • Hector Paullan

    Thank you. It worked perfectly.

  • Tomas Beblar

    OMG thank you! VS 2017 starting pulling this crap and I was angrily thrashing for hours trying to figure it out. With your tip, problem is solved!

  • Pablo Bertrão

    Worked. I spent 3 hours clearing TFS credentials, checking permissions and other things before your post.You  just saved me a good time, thank you for it !