Compartilhar via


How to store your TFS password – #027

Thanks to Wictor Wilen for twittering / blogging about this tip!

If you’re tired of having to type in your user credentials each and every time you open your project, you can have Windows save the username and password for you.

Connect to TFS

From the CodePlex documentation:

Saving Password in Team Explorer
At this time saving of passwords is not supported in Team Explorer. You may change the settings on your computer as a workaround.

In Windows Vista:

  1. Go to the User Accounts Control Panel > Manage Your Network Passwords
  2. Click Add
  3. Enter TFS server that contains your project
  4. Enter your user name (using the prefix and suffix for TFS log-in) and password

In Windows XP:

  1. Go to Start > Settings > Control Panel > User Accounts > Advanced > Manage Passwords > Add
  2. Enter TFS server that contains your project
  3. Enter your user name (using the prefix and suffix for TFS log-in) and password

You may also try one of our other source control clients, if this does not meet your needs.

Technorati Tags: CodePlex Tips

Comments

  • Anonymous
    May 04, 2009
    Where is the "User Accounts Control Panel" in Vista? It's not in my Control Panel.

  • Anonymous
    May 04, 2009
    Sorry about that. In the morning, i'll update the CodePlex documentation to be clearer. In Vista, go to Control PanelUser AccountsUser Accounts, then in the left-side nav, you'll see "Manage your Newtork Passwords".

  • Anonymous
    May 05, 2009
    Oh, thank you!  Great timing.  I was just searching for a solution to this yesterday.

  • Anonymous
    May 05, 2009
    Does this work for non-codeplex projects? I don't see why not, but I can't seem to get it to work. I'm using Vista and I've tried adding a "Windows logon credential" and a "Web site or program credential". Any ideas? What are the prefix and suffix for TFS logon? Is that codeplex specific? I really hope they're adding the ability to do this from the team explorer logon form.

  • Anonymous
    May 05, 2009
    Go Sara Go! I've been wishing my home computer could save my credentials for a while now, but never got annoyed enough to try to solve it. I knew staying subscribed was a good idea when you left VS behind. =)

  • Anonymous
    May 05, 2009
    @Don The login prefix and suffix are specific for CodePlex. for a non-CodePlex project (i.e. just using a standard TFS server) your basic credentials should work.

  • Anonymous
    May 06, 2009
    Okay, I think I figured it out. I used IE to try to browse to the TFS server on port 8080. This prompted me for a username and password and had a checkbox to save the credentials. I then looked at the properties of the credential. It created a 'windows logon credential' and the logon had the machine name as a domain for the id. I was missing the machine name before because I don't type that when logging onto the TFS. Anyway, it works great now. Thanks for the tip!

  • Anonymous
    May 13, 2009
    Windows 7? Credential Manager. I think VS2010 should have save password.

  • Anonymous
    May 20, 2009
    @Prabir - thanx! You just saved me probably 20 minutes.