0
votes

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?

4

4 Answers

2
votes

Pro tip: Log into the TFS server's website with IE. Check remember password. Now it will remember it from VS :)

0
votes

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.

0
votes

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.