How to change the defaut account to link to tfs? - visual-studio-2010

In VS2010 when I cick connect to team foundation server, it asked an account and password for the first time, but then it will use the default account.Now, I want to change the default account, how could I do it? By the way, my os is xp. Thank you!

Right-click on VSTS and select "Run as different user" give the credentials and then connect to TFS.

These resources may help you:
How to Connect VisualStudio 2010 to TFS
Change logged in user
Automatically connect to TFS under another user account

Related

tfs unable to browse projects

I'm using Visual Studio Team Services (was TFS Online) server {MyProject}.visualstudio.com. I'm able to connect to the server, map the project, even receive a review request, but I can't see my team projects under DefaultCollection.
Currently when I'm opening the Source Control Explorer I'm only seeing
{MyProject}.visualstudio.com\DefaultCollection
underlying projects are missing, but my user is in project team members list.
What I missed, what I should do else to be able to browse my projects, get and work with them?
Note: My account was not a microsoft account. I received an email to join the visual studio after tfs administrator added my email as the project team member. I follow to the link and I create a new account during VS sign up using that email and then successfully signed in.
Thanks a lot
This is usually caused by the "Access Level" that the Admin assigned to your account.
When your account is assigned as "Stakeholder", you can only access to "Work" section, cannot access to "Code". If you want the access to "Code", you need to ask your Admin to change the access level of your account.
Have the TFS Admin review your user's rights to the code in the team project. Generally we add users to the Contributor role for the project.
You should also try hitting the Refresh button (third from the right) on the Source Control Explorer window.
I had similar problem and as usual Microsoft has not useful error. Here is step by step tutorial to fix it.
The problem
Solution
This is related to user permissions. Note two things
If you are using 5 user free version, make sure to select user as "Basic user". Free version allows only basic membership.
Then go to Security setting, expand to see "Team Foundation Administrators" and add the new user this. This should resolve the browe project issue.

TFS/Visual studio 2010: Clear cached password for TFS in Visual Studio 2010, Need it to ask me to login again

I am using Windows 7 and i installed TFS Server and connected to it from my VS 2010 install. It prompted me for a password so I entered the admin password.
All went well, now i added myself as a user but i can't get it to ask me to login again. It is remembering (caching) the password. Hence it always logs me in as Administrator.
I search the Internet and some people recommend ClearCred.exe which ships with VS SDK but it doesn't anymore ...
And then checking the managed credentials in windows 7, i have also checked this and i see nothing with regards to my cached TFS password.
I also tried removing the TFS server connection from VS 2010 and readding it .. but it remembers me as Administrator.
Can anyone help?
Open the Start Menu and type "Manage Network Passwords" and open the control panel applet that shows up in the results. Then, you should see the credentials in the list where you can expand the item and "Remove from vault."
You need to remove TFS credentials from Windows Vault to clear and force to ask new TFS credentials in Visual Studio
Go to Control Panel (Start -> Control Panel).
Click User Accounts ( or User Accounts and Family Safety->User Accounts in Windows 7 Machine)
Click Credential Manager (or Manage your credentials)
In Credential Manager page, you can see the two type of credentials
i. Windows Credentials
ii. Generic Credentials
Click on two credentials modify link, click the link Remove from vault to remove stored TFS credentials.
Now, When you login into Visual Studio you will be asked to give credentials to connect TFS.
Note: Don't forgot to uncheck the option Remember my credentials to force to ask credentials for every TFS connections.
I had the same problem and after much googling found this link which fixed my problem i hope it works for you aswell.
http://www.richard-banks.org/2010/07/how-to-remember-my-password-with-tfs.html

Clear remembered passwords in `Team Explorer` pane in Visual Studio 2010 SP1

Every time I open Team Explorer pane in Visual Studio 2010 SP1, it automatically log in with some certain remembered account which I don't want to.
I'm looking for way to remove the remembered stuff.
Please help!
Nam.
Team Explorer uses standard Windows authentication techniques to authenticate to Team Foundation Server. If there are Windows Credentials stored in Credential Manager, it will use those to authenticate. If not, it will use your domain credentials.
So, check Credential Manager: Control Panel > User Accounts > Credential Manager. If there are Windows Credentials stored there for your TFS server, removing them will begin authenticating you with your logged-in credentials. If you want to override this behavior, add new credentials there.

Making Visual Studio TFS plugin store your credentials?

Every time I open Visual Studio 2008, I get a pop-up dialog prompting for my username and password ('Connecting to Team Foundation Server'). Presumably this is because I have my TFS server stored in the Team Explorer tab, in Servers, so it wants to connect to it on startup. In addition, this happens when I open a solution file whose solution is associated with TFS source control, for obvious reasons.
My problem is identical to that described in various places on the web, such as:
http://kevinsmi.wordpress.com/2009/10/07/getting-visual-studio-to-remember-your-tfs-credentials-on-windows-7/
http://social.msdn.microsoft.com/Forums/en-US/tfsgeneral/thread/186a469c-bc58-48c4-9db9-ffc2e0fedb11
http://hastobe.net/blogs/stevemorgan/archive/2008/08/25/stop-visual-studio-prompting-for-tfs-credentials.aspx
In all cases I can see, the suggested solution is to add the TFS server credentials to Windows' stored credentials. I'm using Windows 7, so I think the way you do that is in the Credential Manager.
Well, I've added the TFS server with my credentials to the 'Windows Credentials' list, and I still get the prompt for my username and password when I open Visual Studio 2008. Anyone have any ideas as to how I can get it to login with my credentials automatically?
UPDATE:
I added my TFS server's computer name, along with my username and password, into the Credential Manager (before I just had its IP address). Now, VS2008 does load without prompting me for credentials... but VS2005 still prompts me for them, even though it has the exact same server registered in Team Explorer! Whatsmore, the server registered in Team Explorer is the server's IP, which was already stored in Windows Credentials, rather than the server's name. So this is still a mystery. Could this be some registry setting peculiar to the VS2005 version of the Team Explorer source control plugin? Where in the registry could I find this potential setting(s)?
Did you even try to access TFS web site and enter your credentials to IE?
If you don't try, please try and check "Remember my credentials" checkbox.
I think this can solve your problem.
I found another way, check this article http://blogs.msdn.com/b/granth/archive/2010/10/17/getting-started-with-tfs-hosting-from-discountasp-net.aspx
and read Step 7,
may be this can be answer your problem.
For Visual Studio 2008, entering the credentials in the Credential Manager as I described above seemed to work.
I entered the server's IP address instead of its hostname in Visual Studio 2005 too, and at first it still prompted me for the username/password on startup. However, it has now stopped doing so. Maybe something needed to timeout? All I can say is, Visual Studio's TFS plugin works in strange (and undocumented) ways.
I had the same problem. The problem was that the TF-Server was not recognized being in the local intranet zone. So I added our TF-Server to the trusted sites in Internet Explorer settings and changed the user authentication in security level to automatically sign on with current username and password.

Automate TFS logon from Visual Studio

My main domain account does not have local admin privileges and I start Visual Studio using RunAs and another account that has local admin privileges.
Our Team Foundation Server (2008) is configures to recognise the main domain accounts not the local admin accounts. This means I have to log into TFS after starting VS with the admin account. Note that TFS is on our domain and it's VS that is prompting for credentials.
Is there any way I can automate the logon to TFS to use my main domain account?
Pro tip: Log into the TFS server's website with IE. Check remember password. Now it will remember it from VS :)
I would suggest that either you have the local-admin-wielding account added to TFS (if it isn't a shared account, that is), or you log in as local admin, and add your main domain account to local administrators. It's either that, or you'll need to log in to TFS every time, I believe.
Also, it's not Visual Studio that is prompting you for credentials, it is Team Foundation Server. Basically, when TFS tries to make the connection to TFS, it tries to log on with your current network credentials. If that doesn't work, it will bring up the appropriate dialog(s) to prompt for user id and password.
Have you tried
http://runas-professional.software.informer.com/
Login to the machine as the administrative user.
Then either login to the TFS webserver, or (on win7) go to:
Control Panel -> User Accounts -> User Accounts -> Manage you credentials
add the information here.

Resources