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.

TFS-AutoLogon-CredentialsError.png

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
    TFS-AutoLogon-ControlPanel-UserAccounts.png
  3. Click on Credential Manager
    TFS-AutoLogon-ControlPanel-CredentialManager.png
  4. Click on the link Add a Windows credential next to Windows Credentials
    TFS-AutoLogon-ControlPanel-CredentialManager-AddCredential.png
  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.
    TFS-AutoLogon-ControlPanel-CredentialManager-AddCredential-Inputbox.png
    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.