title: Accessing TFS from Powershell
body: <p>I am new to PowerShell and I am trying to get branches from TFS and merge them using a PowerShell script.  Unfortunately I am failing a first hurdle.</p>
  
  <p>I do have Visual Studio 2010 install on my local machine and can access the TFS server (also 2010) fine.</p>
  
  <p>I am running the script from my local machine and have the following lines:</p>
  
  <pre><code>$tfs = get-tfs http://TFSServerName:8080/TFSProject
  $branchfolders = $tfs.VCS.GetItems('$/Dev/Branches/', $tfs.RecursionType::OneLevel)
  </code></pre>
  
  <p>and I receive the following error on the second line 2 above</p>
  
  <p><strong>Exception calling "GetItems" with "2" argument(s): "Unable to connect to the remote server"</strong></p>
  
  <p>I have configured the TFS server to accept incoming connections on port 8080 which works but I am now not to sure how to resolve this error.  Is further configuration required?</p>
  
  <p>Thanks for any help given.</p>