Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signing out from TFS and sign in with new credentials

Im working VS 2015 and TFS 2015. By mistake I logged into TFS with a different credentials which is some what unused one. But after that TFS connection manager not asking for new credentials and its using the details I entered first.

So based on some search I found we can remove that from Credential manager but unfortunately its not showing anything related to TFS.

Also based on another solution I opened integrated web broswer window in VS and opened the TFS page. There its login default with my first details. So when ever I click on the name, the broswer freezes and VS crashes and restarts.

So I really got stucked and having no idea what to do. So what can I do to signoff the first credentials from TFS

like image 220
Sandeep Thomas Avatar asked Jan 30 '17 16:01

Sandeep Thomas


People also ask

How do I change my credentials in TFS?

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.

How do I clear my TFS credentials?

1. Go to Control Panel (Start -> Control Panel). 5. Click on two credential's modify link, click the link Remove from vault to remove stored TFS credentials.

How do I find my TFS credentials?

Where is the credentials information stored? Actually Windows stores the credentials information at Control panel\User Accounts\Manage Your Network Passwords (or Control Panel\User Accounts and Family Safety\Credential Manager). For example, I'm using Dynamsoft TFS Hosting service.


2 Answers

It's strange that only local windows account can show the TFS credential under the Credential manager. So if you are using local user, you can remove the credentials from Credential manager: Go to Control Panel > User Accounts > Manage Your Credentials > select your Team foundation Server and choose remove.

If you are using domain user it shows nothing TFS related credentials under Credential manager, in this case please try to run Visual Studio using this command instead:

runas /netonly /user:<account> devenv.exe

This should have the Visual Studio to run with another Windows user so it can connect to remote TFS with different credentials. enter image description here

like image 178
Andy Li-MSFT Avatar answered Sep 21 '22 17:09

Andy Li-MSFT


Go to Credential Manager

Delete the TFS related credentials

Then in Credential Manager add Generic Credentials for the TFS account. This would overwrite the cached credentials.

I tried so many different things and this is what worked for me. Hopefully it works for you.

like image 21
littlerani Avatar answered Sep 19 '22 17:09

littlerani