Impersonate a user to execute TF.exe
Is there a way to provide credentials to get latest files from TFS using TF.exe command line utility? My company was recently took over by another company. After acquisition, my machine was imaged as per new company's policy. I will be able to access the old company's domain over VPN. The TFS server belongs to old company's and accessible only over VPN. I have a MSBuild script which was working good before the take over. When I try executing it now, I get a message I am not authorized to access the TFS server even when I am connected to VPN.
When I try launching the Visual Studio, Team explo开发者_开发知识库rer prompts for user name/password. Is there a way to provide the credentials to the command line - similar to Visual Studio?
I appreciate the help.
Thanks.~/Ananth
You can use "Run As..." when invoking the shortcut to the Visual Studio .Net 2008 Command Line - and from there, you should be fine.
You can add the credentials to the Credential cache: http://www.ewaldhofman.nl/post/2009/05/21/Automatically-connect-to-TFS-under-another-user-account.aspx
精彩评论