If you want automating the install of Exchange 2007 SP1, here’s a script written by Robert Gillies, that let you build Exchange 2007 labs. The goal of this exercise was to have a single script that could be run on a given machine, and based on the server naming convention install the appropriate roles and possibly make some configuration decisions. The customer I am working with for this has a very well defined server naming convention which makes this possible. One possibility for a change would be to have a CSV file that would define the Exchange roles based on what the installation team put into the file as opposed to being strictly name based.
Please note: below procedures and scripts were tested only in lab environments! This script is not officially supported by Microsoft.
Microsoft, Exchange Server 2007, Exchange 2007, Setup, Tips, Script