开发者

Automate TFS logon from Visual Studio

开发者 https://www.devze.com 2023-01-18 17:43 出处:网络
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.

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 wit开发者_运维技巧h 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号