Clearing the credentials for connecting to a Team Foundation Server

Clearing the credentials for connecting to a Team Foundation Server

Rate This
  • Comments 18

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?


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. 



Leave a Comment
  • Please add 4 and 1 and type the answer here:
  • Post
  • The new SkyDrive client also seems to "mess up" credential management for *hosted* TFS Server ( -- if the SkyDrive client is connected under a different Windows Live ID than you use for tfspreview, you will lose the ability to connect to TFS preview through Visual Studio (confirmed 2010 and 2012) with error codes of TF31003 or TF30063. Richard F. wrote the problem up with a workaround here: -- but hopefully the SkyDrive and/or ALM teams can get a fix in place in the near future!

  • Hi.

    Not sure from which Windows version/environment you took the screen shots, but just to point out that on Win7 Pro, which is the default in my software firm, the link is called "Manage your Credentials" and this opens the "Credential Manager".

    From there, you get the "Windows Vault", which store the credentials as described above.



  • Grant Holliday also pointed out this can be done using "cmdkey [/list:servername]" from the command line.

  • This doesn't work if you use the online identity manager thing from None of my instances show up in the credentials manager.

  • Now the question is where they are in Windows XP?

  • You need to remove TFS credentials from Windows Vault to clear and force to ask new TFS credentials in Visual Studio


    1. Go to Control Panel (Start -> Control Panel).

    2. Click User Accounts ( or User Accounts and Family Safety->User Accounts in Windows 7 Machine)

    3. Click Credential Manager (or Manage your credentials)

    4. In Credential Manager page, you can see the two type of credentials

              i. Windows Credentials

              ii. Generic Credentials

     5. Click on two credential's modify link,  click the link Remove from vault to remove stored TFS credentials.

  • I tried removing from vault a few times, without any luck. While doing this, I made sure that every credential referring to the TFS servername was removed. So, i manually created new credentials with the TFS servername, the correct domain user & password. Next when i opened VS.Net, it worked !!

  • Thank you kindly.  It was driving me nuts in the build server setup for TFS Build Service.

  • Hi ,

    I have tried my best to clear the saved password but still when I open Visual Studio it is connecting to TFS with the old credentials. Below are the action items I have done for clearing passwords:

    1. Cleared my IE cache, cookies and passwords.(No Luck)

    2. From my credential manager Removed the TFS server credentials and opened VS but no luck.

    3. From command prompt deleted the saved passwords for TFS.

    Tried to "Run as different User". It worked. But didn't satisfied with this solution. I have to change my workspace if I use this option. But why couldn't I clear my VS credentials where others can?

    Can anyone help me with different solution.

  • Thanks a lot!!

  • Thank you, thank you - been banging my head all day over this - you saved my sanity!

  • Hi Vishali Malepati,

    Am also facing the same problem. I tried to enter server name only like( its connected to TFS.

    Please Try this One.!



  • The solution worked perfectly ! Thanks ! :)

  • How can I disable automatic password store for TFS through WEB ?

  • Thank you!!! this was very helpful!!!!

Page 1 of 2 (18 items) 12