The following PowerShell script is intended to help operations staff as well as developers to automate the base install of SharePoint 2010 Server with Service Pack 1 on Windows Server 2008 R2 SP1 if they do not have a standardized deployment tool in their environment.
The script will perform the following actions:
Format the two drives D:\ and E:\ as part of the overall SharePoint 2010 install.
Modify the CDROM drive to X:\
Create specific folders.
Install the SharePoint 2010 prerequisites.
Deploy SharePoint 2010 with Service Pack 1 slipstreamed.
Install the Adobe PDF IFilter.
Register the PDF extension in the registry, update the DOCICON.XML file for search, and add the Adobe PDF Image to the 14 hive.
Optionally install the SMTP or Network Load Balancer component by the System Operator.
Add a dedicated install account to the local administrators group of the Windows Server.
Enable firewall logging through the use of netsh.
Will disable the loopback check in the registry to browse SharePoint sites locally.
Will add an Active Directory based account such as SPADMIN to the local administrators group to perform the actual installation.