Administering TFS with Windows PowerShell
Have an administration task in TFS that you need to accomplish, but can't find just the right tool for the job? Tired of repeating the same task over and over, and wish there was some way to automate it? Need to perform jobs on multiple servers in your TFS deployment? Windows PowerShell can help you accomplish all of these things. Most of the TFS client object model can be accessed through Windows PowerShell scripts, along with the object models for SQL Server, SharePoint Foundation, and SharePoint Server, which makes PowerShell an ideal resource to add to your TFS administration toolbox.
20 May 2014
Install Windows PowerShell
If you don't have it already, here's where you can download and install the right version of Windows PowerShell for your operating system.
TFS 2013 Power Tools, including cmdlets for TFS
TFS PowerTools include Windows PowerShell Cmdlets, a Windows PowerShell interface that supports basic version control commands and a pipeline and glue to enable scripting. This link is for TFS 2013, but the link for installing the TFS 2012 version is on the side of the screen. There's a 2010 version available, too.
Automating Task Creation in Team Foundation Server with PowerShell
Find yourself creating similar tasks over and over at the start of each new sprint? PowerShell can help you automate that!
Using PowerShell and TFS API to list users in TFS 2010 (and 2012)
New to PowerShell, and worried that you won't be able to use it for TFS administration tasks right away? Take inspiration from this great blog post from a first-time blogger, new-to-PowerShell user, including the script he wrote to get a 'user dump' from his TFS deployment.
TFS and PowerShell scripts from Jason Stangroome
Jason's modest bio states "I specialise in build and deployment automation using mostly Team Foundation Server and PowerShell," and he's not kidding. He's also shared a number of his customized TFS and PowerShell solutions out on GitHub. If you're looking for examples of how to solve TFS problems with PowerShell, he is a fantastic resource!
Protect Your PowerShell Scripts with Version Control - Hey, Scripting Guy! Blog - Site Home - TechNet Blogs
Stefan gives you a great walkthrough of using Powershell and TFS on Visual Studio Online to manage Team Foundation Version Control - including versioning your own Powershell scripts so you never lose your favorite Powershell creations!
PowerShell and TFS: The Basics and Beyond - Hey, Scripting Guy! Blog - Site Home - TechNet Blogs
Are you looking for ways to harness the power of Windows PowerShell to help you manage TFS? This blog post goes over the basics for the PowerShell newbie and contains information and useful links for those experienced with both PowerShell and TFS.
TFS and PowerShell on StackOverflow
Have a question about TFS and PowerShell? Want to see if someone else has already come up with a PowerShell solution to your TFS problem? This is a great place to start.
TFS PowerShell projects on CodePlex
From Office / SharePoint 2013 Continuous Integration with TFS to community TFS Build extensions, there are some great TFS and PowerShell projects available to you on CodePlex. Check them out!