Search code examples
command-linepasswordsremember-me

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


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?


Solution

  • 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!