Skip to content

Instantly share code, notes, and snippets.

@iqwirty
Created April 18, 2014 14:37
Show Gist options
  • Save iqwirty/11047434 to your computer and use it in GitHub Desktop.
Save iqwirty/11047434 to your computer and use it in GitHub Desktop.
Connect to a TFS server and display some information
# Load the snap-in for TFS. You might need to first install the TFS Powertools from Microsoft.
Add-PSSnapin Microsoft.TeamFoundation.PowerShell
$serverUrl = "http://servername:8080/tfs"
$tfsServer = Get-TfsServer -Name $serverUrl
# Output some information about the server object
$tfsServer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment