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

2

11

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. What can I try next?

Anaanabaena answered 16/11, 2010 at 4:49 Comment(0)
A
11

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!

Anaanabaena answered 16/12, 2010 at 4:8 Comment(2)
If you define an environment variable named TF_AUTO_SAVE_CREDENTIALS, then you only need to provide login credentials once per session. Source: msdn.microsoft.com/en-us/library/hh190725.aspxYeeyegg
Where can I get the domain name? I'm using VS Online.Marchesa
T
7

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

Tandy answered 16/11, 2010 at 5:56 Comment(1)
Thank you Hofman! Though, I'm looking for a parameter syntax.Anaanabaena

© 2022 - 2024 — McMap. All rights reserved.