Visual Studio 2010 have not got an option to store credentials of TFS login which make you really cranky at times. So to store the credentials and avoid the prompt when connecting to external TFS server please follow the steps below:-
Using windows 7
1. Go to Control Panel -> User Accounts and Family Safety -> User Accounts
2. Select "Manage your credentials"
3. Select "Add a Windows credential"
4. Specify the network...