Automatically connect to TFS under another user account

by Ewald Hofman 21. May 2009 12:57

When you make a connection to TFS with the Team Explorer, it will try to connect with your current credentials to the TFS environment. There are two scenarios in which you want something else:

1) You current identity has no access to TFS and you are prompted for the credentials every time you make a connection to TFS

2) Your current identity has access to TFS, but you want to connect to TFS with other credentials.

You can achieve this by adding the credentials you want to use to create the connection to TFS to the "Stored users and passwords". Just add in there the address of you TFS server and the credentials. The next time you access TFS, those credentials will be used.

[UPDATE: September 9th, 2009]
In Windows 7, you can find the stored credentials under "Manage Windows Credentials".




2/18/2010 10:15:31 AM #


This works for connecting to TFS - but the in the solution explorer the items are not "bound" to the source safe repository - to be clear I can check in/out all that good stuff from within the Source Control TFS plug in, but not from within the solution explorer itself - I have checked with the network guys and they show me it is attempting to use my local machine credentials when I try and access a file via the solution explorer.

I have been trying to resolve this for days with no luck - setting SSUSER and SSPWD environmental variables also DO NOT do the trick as it appears you can not specify a domain with those variables - any help would be greatly appreciated.

This again only related to windows 7.

Chris Canada |

2/18/2010 10:27:34 AM #

Ewald Hofman

You are talking about Visual Source Safe. This is an end-of-life product.

This blog post is on Team Foundation Server, which is the better product for VSS:

Ewald Hofman Netherlands |

5/3/2010 12:26:42 PM #



Slightly different topic, but once you are in Visual Studio and connected to TFS, is there a way to show the user id that you are connected as to TFS?

This shouldn't be a big issue in doing day to day work, but in some testing situations (for example, testing security for custom groups) we have seen a need for this.

mrotoyou United States |

5/3/2010 1:24:14 PM #

Ewald Hofman

Altough you can not see it somewhere prominent in the application, but there are 2 places where you can see it I can think of now:

1) Open the workspaces (File -> Source Control -> Workspaces). In there you see in the owner column who is logged in

2) Create a work item query with a filter on @Me. It then shows all work items assigned to the logged in user.

Ewald Hofman Netherlands |

2/24/2010 6:06:12 AM #

Izdelava spletnih strani

Just wanted to tell you that your page is not showing up properly on the Opera.  Anyway, I have subscribed to your RSS feed. Smile

Izdelava spletnih strani Slovenia |

5/10/2011 7:30:35 AM #


This really answered my problem, thank you!

palety Poland |

11/9/2011 7:11:26 AM #


Pingback from

Login to remote TFS server from Windows 7 ultimate - Programmers Goodies |

Comments are closed

Powered by BlogEngine.NET
Theme by Mads Kristensen


Widget Statistics not found.

There is an error in XML document (0, 0).X

Recent comments

Comment RSS