Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing login account used for TF command-line

When using the command-line version of TFS 2012, we call

TF.exe get $/Path/To/Team/Project/Some/Folder /recursive

And with that call from command line prompt, my command succeeded.

I do not put in any username/password for this call.

I want to change the user for this command but going for TF.exe /? give me no choice.

How can I change login account used for TF command-line?

like image 218
Nam G VU Avatar asked Oct 24 '25 02:10

Nam G VU


2 Answers

The answer is here

TF.exe get /login:yourUsername,yourPassword ...

We can see manual for that from

TF get /?

Cheers

like image 110
Nam G VU Avatar answered Oct 27 '25 14:10

Nam G VU


Hit Shift + Right click on Visual Studio Command Prompt (in Start menu) and select Run as different user. Enter the user credentials when asked and it will open the command prompt and run as that user. After that you can run tf.exe command as that user.

You will have to make sure user has permission to the workspace for that folder. You can use Public workspaces to allow multiple users to use same workspace mappings.

like image 31
Adarsh Shah Avatar answered Oct 27 '25 15:10

Adarsh Shah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!