Hands-Free TFS Installation - Introduction

July 17, 2007 at 11:56 am | In Team Foundation Server |

Update: If you’re after the TFS2008 version, see this blog post.

… Almost hands-free.

This 4-part series of blog posts describes how to automate the preparation, installation and configuration of a TFS 2005 (v1) for deployment in a Virtual Server environment. I will discuss how to save installation time and configure your servers for HTTPS/SSL without using the GUI.

This process is only good for TFS 2005 (v1) and will most-likely change for TFS 2008 (Orcas). I use a combination of netsh.exe, netdom.exe, sysprep, installation answer files, quiet installations, custom ISO files, resource kits, batch files and PowerShell scripts in this solution. There is no error checking and no guarantees that it will work in your environment.

All configurations are as vanilla as possible and I’ve provided links throughout the posts for further information on the tools and techniques.

Warning - Before you start

These posts are not a substitute for reading and understanding the latest version of the Visual Studio Team Foundation Installation Guide (TFSInstall.chm) . The content of this guide is very important and always being improved.

Reasons

Before starting anything these days, I take a moment to understand the reasons for doing so. I ask myself the questions:

  • “What am I trying to achieve here?”
  • “What does the end-goal look like?”

The reasons vary for why you might want to setup a hands-free TFS installation. Some examples that I could think of are:

  • You might be a TFS consultant and you’ve done so many installs for customers that you’re sick of the long drawn-out process of following the latest TFSInstall.chm line-by-line. (not to mention getting all the latest media together and swapping DVD’s in and out).
  • You might be an ‘IT Pro’ / ‘infrastructure guy’ and your time is at a premium. You hate sitting there watching progress bars move slowly across the screen just so that you can swap in the next DVD.
  • You also might be building a farm of TFS servers… for …something *shhh* - you’ll have to wait for TechEd Australia (8-10 August 2007) for the big announcement :-)

For me, the reason to create these scripts was a mix of all these. I hate waiting for progress bars, I hate swapping media and I don’t trust other people to follow instructions. The more automation, the better. I wanted a consistent & repeatable process for creating a TFS server so that it’s easy to support and maintain.

But what about Etienne’s TFS Install Scripts?

Some of you may have already been using fellow VSTS MVP Etienne Tremblay’s TFS Install Scripts. Etienne’s scripts use a combination of VBS and a HTML ‘control’ page for filling in parameters. There’s nothing wrong with these scripts - the process is just not as automated as I would’ve liked. (and they’re written in .vbs which I have a personal dislike for).

Technologies in use

There’s a wide range of technologies that I’ve used to create this solution. They range from old-school batch files to the more recent PowerShell scripting runtime. Some of the different technologies are:

  • Batch files
  • PowerShell scripts
  • Netsh.exe
  • Netdom.exe
  • Net.exe
  • IIS 6.0 Resource kit
  • SYSPREP 
  • Virtual Server 2005 R2 SP1
  • System Center Virtual Machine Manager (SC VMM) beta 2
  • ISO files

Here they are:

Download the scripts

The latest version of all the scripts covered in this series can be download from this location:

3 Comments »

RSS feed for comments on this post. TrackBack URI

  1. [...] Holliday posted an almost hands-free TFS 2005 installation guide and I have been going through the same process for TFS 2008 so I thought I’d point out a few [...]

    Pingback by Hands-Free TFS 2008 Install at blogs.teamsystemnotes.com — April 21, 2008 #

  2. [...] updated for TFS2008 William Bartholomew is an Australian TFS colleague who has updated my Hands-Free TFS Installation Guide for use with TFS2008. Team System Notes: Hands-Free TFS 2008 [...]

    Pingback by Hands-Free TFS Installation updated for TFS2008 « Grant Holliday — April 22, 2008 #

  3. [...] For a more detailed list of hands-free installation of all the required pieces, check out this series of posts by Grant Holliday. Published Sep 03 2008, 09:55 AM by Steve Filed under: Team Foundation, [...]

    Pingback by Team Foundation Answer Files for SQL Server - .NETicated — September 3, 2008 #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.