Last modified at 11/2/2013 9:19 PM by Koen Zomers

You all probably know the situation where you keep having to log on to TFS from within Visual Studio manually. Most of the time you will probably be developing stuff inside a virtual image which is not conneted to the Active Directory domain, thus it asks for your credentials.


It is easy to configure Windows to automatically log on to TFS from Visual Studio for you, even if you're not a member of the same domain.

Follow these steps to do so (screenshots taken from a Windows 2008 development environment, might be slightly different on other OSes):

  1. Via Windows start, go to the Windows Control Panel
  2. Click on User Accounts
  3. Click on Credential Manager
  4. Click on the link Add a Windows credential next to Windows Credentials
  5. In the Internet or network address field, enter the DNS name to your TFS server
    In the User name field enter the username you wish to provide to the TFS server. Use the domain\user format.
    In the Password field enter the password belonging to the username.
    Click OK to add the credential set.
  6. Reopen the Connect to Team Project dialog box or switch between two servers listed in there and you should see it now automatically log on to the TFS server you added at step 5.