Using Scripts to Automate MOSS 2007 Installations
Automated scripts can come handy when you want to install a product on multiple servers. Microsoft has published a 30-page white paper that provides information and guidelines for building scripts that can automate the installation of Office SharePoint Server 2007, the configuration of servers, and the creation and joining of farms. Code samples that you can copy and customize to match your farm and configuration are included.
The script will help you setup and configure the prerequisites, install the SharePoint Server, configure the services, and create and configure the sites.
WARNING! This white paper was last updated in 2008 and the link on Microsoft’s site is now broken. Unfortunately, Microsoft didn’t redirect the link. I should warn you that Microsoft’s script that creates service accounts does not include the proper domain and groups right that are necessary so I guess you are not missing much. I recommend you read my article about the service accounts that are necessary to properly install MOSS 2007 and then modify your script accordingly. There are other scripts available on the Web, like this one from CodePlex: MOSS 2007 Automated Installation Scripts.