title: TfsConfigurationServerFactory not found
body: <pre><code>$uri = "https://myserver.com:443/tfs"
  $tfsConfigurationServer = [Microsoft.TeamFoundation.Client.TfsConfigurationServerFactory]::GetConfigurationServer($uri)
  </code></pre>
  
  <p>gives this error on the power shell script </p>
  
  <pre><code>Unable to find type [Microsoft.TeamFoundation.Client.TfsConfigurationServerFactory].
  </code></pre>
  
  <p>Adding this line add the dll to only the curreent session.</p>
  
  <pre><code>Add-Type -Path “C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\TestAgent\Microsoft.TeamFoundation.Client.dll”
  </code></pre>
  
  <p>My question is what do I need to do/install to get Microsoft.TeamFoundation.Client.TfsConfigurationServerFactory in my pc?
  I can see the dlls in this location of my PC.</p>
  
  <pre><code>C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\TestAgent\Microsoft.TeamFoundation.Client.dll
  </code></pre>
  
  <p>I have VS 2017 installed and using windows 10 </p>