title: Get latest from Visual Studio Team Services using Command Line passing /login credentials with TF.exe
body: <p>Has anyone had success getting latest source code from the Visual Studio Team Services (formerly Visual Studio Online, Team Foundation Service) Version Control Server using the command line and passing in credentials programmatically? </p>
  
  <p>-I have discovered that you can't use the Windows ID credentials that you use to login to Team Explorer or the VSO website in the command line.  You need to create Alternate Credentials for the user profile in Team Services.</p>
  
  <p>-I have found out that if you omit the /login in tf.exe, the Team Services login dialog appears and asks you to type in your Windows ID credentials (unless they are already cached in your Team Explorer or Visual Studio (or even possibly Browser and Windows Credential Caches) </p>
  
  <p>-I have found out that the alternate credential work Using the Java version of tf.exe - Team Explorer Everywhere Command Line Client (TEE CLC).  TEE CLC actually uses the /login credentials that you pass in and lets you connect.  The same thing does NOT seem to be possible with the TF.EXE in C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\  BUT INSTALLING JAVA ON THIS BUILD ENVIRONMENT IS AGAINST POLICY. So the TEE CLC is NOT a viable option.</p>
  
  <pre><code>tf get $/MyProj /collection:https://myaccount.visualstudio.com/DefaultCollection /login:user:pass 
  </code></pre>
  
  <p>the above command simply ignores the /login credentials if you have the Windows ID credentials cached or it returns the error message TF30063: You are not authorized to access myaccount.visualstudio.com (which is not true, because the credentials DO work with the Java client)</p>
  
  <p>Are there any other alternatives that do not require installing Java?</p>