Humblecoder

Caution, this blog may be ironically named

Why Can’t TFS Remember My Credentials?!

| Comments

At the office we use TFS and it pesters me for credentials every time I start Visual Studio because I’m not on the domain.  This does quickly become very tiresome.

Solution

I set about trying to cache my credentials this morning after, mixed with a case of the Mondays, I’d finally had enough with it pestering me.  The dialog does not have any remember my password option so the next stop is to save it in my Windows Profile.  To do this:

  1. Open “Control Panel”
  2. Go to “User Accounts” and select the option “Manage your network passwords”
  3. In the dialog enter the path to your TFS server and your credentials, for example Add Network Password

This worked great for Visual Studio but I still had to log into the TFS Sharepoint portal site every time.  I discovered you also have to enter the TFS server address into the “Intranet Zone” in “Internet Options”.  To do this:

  1. Open “Control Panel”
  2. Go To “Internet Options” and select the “Security” tab
  3. Then select “Intranet Zone” and click on the “Sites” option
  4. Now enter the address of the TFS server, for example: Intranet Zone

Then you should never be harassed again :)  This works / is needed on Sever 2008 and Vista, as per usual the story is a lot better under Win 7 and Server 2008 R2.  It’s just a shame my main development VM is 2008 and I don’t have time to reimage it.

Comments