Problem:
When trying to work with TFS using the command line tool tf.exe on the TFS server, all commands end up with error: TF30063: You are not authorized to access <server>, <server> being the address of the TFS server you specified as tf.exe /server parameter, such as
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE>tf status /server:http:
//tfs01.mydomain.com:8080 /workspace:MyWorkspace /user:mydomain\myusername
Solution:
Instead of using DNS registered URL of the TFS server, use full computer name. So in my case command that worked was:
//ws000123.eu.mydomain.com:8080 /workspace:MyWorkspace /user:mydomain\myusername
Helped me a lot, thank you!
ReplyDeleteThanks so much, It helped a lot.
ReplyDeleteReaffirmed! Thanks!
ReplyDeleteWow... I've been struggling with this for a few hours today. Trying to run data-driven Coded UI tests (where DataSource is parameters in a testcase) from MTM and Build Definitions, running into this error, even though those tests would run fine from Visual Studio. Changed the hostname in the DataSource from our DNS alias to the FQDN of the host, and blamo, it worked. Thanks!
ReplyDeleteYou, my man, are a lifesaver!
ReplyDeleteThx for this solution, it's very useful.
ReplyDeleteWish y the best!
Regards
Toby, due diligence data room