Wednesday, February 17, 2010

How to avoid recurring TFS login from Visual Studio

Every time you open Visual studio (with tfs connected mode), it asks you to enter credentials. Even if you are trying to do some command line stuff for tfs, it will prompt you for credentials.

Let's try to make that easy.

Steps (Windows Vista)

  1. Control Panel, User Accounts, User Accounts (again);
  2. Click "Manage your network passwords" ("Tasks" list on the left);
  3. In the "Stored User Names and Password" dialog, click Add;
  4. Type in your Code-Plex (or any other TFS server for that matter)
    1. Add only the host name in the "Log on to" field ();
    2. Type username in the "Domain\FirstName.LastName" format;
    3. Select "A Windows logon credential" radio button.

 

Steps (Windows 7)

  1. Control Panel, User Accounts
  2. Click "Manage your credentials" (on the left);
  3. In the "Stored Credentials for Automatic logon" page, click "Add a windows credential";
  4. On the resultant page Type in your following details -Plex (or any other TFS server for that matter)
    1. Add only the host name in the "Network details" field (tfs server full name);
    2. Type username in the "Domain\FirstName.LastName" format;
    3. Type Password

Steps (Windows XP)

  1. Control Panel, User Accounts, Advanced tab
  2. Click Manage Passwords
  3. Click Add
  4. Enter the server name (tfs server name), user name (Domain\FirstName.LastName and password).

4 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. I just added the HomeGroupUsers$ group and joined the home group. That took care of the problem.

    ReplyDelete
  3. Also check your password hasn't expired.

    ReplyDelete
  4. Thanks for this information it helped me to stop getting the pop-up to enter my credentials every time I started a new build in TFS 2015.

    ReplyDelete

Thank you for your feedback. I will be glad to know, if this post helped you.