开发者

How to remember username/password when calling tf.exe?

开发者 https://www.devze.com 2023-01-25 20:39 出处:网络
I use tf.exe command to get the latest codes but it keeps asking for username/password - is there a way to make those credentials remembered?

I use tf.exe command to get the latest codes but it keeps asking for username/password - is there a way to make those credentials remembered?

I've looked at the tf.exe argument list but no options allowing to pass-in username/password. W开发者_运维知识库hat can I try next?


I think what you need is adding the parameter /login, i.e. /login:DOMAIN\Username,YourPassword, to your TF.exe command.

Example: TF.exe get $/Path/To/Source/On/TFSServer /recursive /login:DOMAIN\Username,YourPassword

Hope that helps!


You can store the credentials in the Stored Windows Credentials.

See http://www.ewaldhofman.nl/post/2009/05/21/Automatically-connect-to-TFS-under-another-user-account.aspx for more information

0

精彩评论

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

关注公众号