Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 demo.ps1
README.md

PSTfsTeams

A PowerShell module alternative to the ALM Rangers' Quick Response Sample "Command line utility to manage Team Foundation Server Teams and Users".

Quick Response Sample – Command line utility to manage Team Foundation Server Teams and Users

Quick Response Sample Solutions downloads

Usage

Download and extract the PSTfsTeams.zip file from the Releases page. The contents should be extracted to a folder on the PowerShell PSModulePath, for example %USERPROFILE%\Documents\WindowsPowerShell\Modules\, ie C:\Users\Jason\Documents\Windows\PowerShell\Modules\.

The zip file should be extracted so that the DLL file exists within a folder of the same name, eg: .\Modules\PSTfsTeams\PSTfsTeams.dll.

The module can then be imported:

Import-Module -Name PSTfsTeams

A list of teams for a given Team Project can be retrieved:

Get-TfsTeam -CollectionUri http://tfsserver:8080/tfs/DefaultCollection -TeamProject YourProject

A new team can be created:

New-TfsTeam -CollectionUri http://tfsserver:8080/tfs/DefaultCollection `
  -TeamProject YourProject `
  -Name 'New team name' `
  -Description 'Description of new team'

Add a member to an existing team:

Add-TfsTeamMember -CollectionUri http://tfsserver:8080/tfs/DefaultCollection `
  -TeamProject YourProject `
  -Team 'A team name' `
  -Member 'New member user name'
Something went wrong with that request. Please try again.