I created this project — SharePoint 2010 PowerShell scripts & utilities, on codeplex last week to start sharing all the miscellaneous scripts I have been using throughout my SharePoint 2010 learning cycle. Most of these scripts require quite a bit of rework as they were never meant for sharing with outside world :). I am in the process of doing that and I will post each of those scripts as different modules under different categories.
To start with, I am releasing SharePoint install utilities today. This module has only two cmdlets, at present. I will add remaining as time permits.
SharePoint 2010 install utilities – SPinstallUtils.psm1
There are a couple of good SharePoint 2010 install automation modules (AutoSPInstaller by @brianlala & SPModule by Zach @ microsoft) already. This module is nowhere close to what they did. But this is just based on the Keep It Simple Stupid (KISS) principle. I have been using this ever since the first beta was released.
In this module, you can use the Get-SPPreRequisites to download SharePoint 2010 prerequisite files from Internet. You can specify R2 or SP2 or All as an option to this cmdlet to download prerequisite files. This cmdlet uses BITS 4.0 PowerShell cmdlets to perform file downloads. So, you will require the BITS 4.0 update installed, in case you are using this module on Windows Server 2008 or Windows Vista.
Note: This won’t install SQL Server 2008 R2 Reporting service add-in.
The New-SPInstallPackage cmdlet creates a ready-made package for performing completely automated SharePoint 2010 install on Windows 7 or Windows Server 2008 R2 or Windows Server 2008 SP2. This cmdlet can
Extract SharePoint install files from the SharePoint software ISO
Download all prerequisite files to the PrerequisiteInstallerFiles folder
Create config.xml based on the options supplied
Create a setup DOS batch file to start & complete SharePoint install
So, after this self-extractable zip package is created, you can just extract the contents on the target coputer where you want to install SharePoint software and perform a completely automated install using the setup batch file created underneath this SharePoint software folder. This setup batch file (Setup_WIN7.bat or Setup_R2.bat or Setup_SP2.bat) will even take care of the reboot between prerequisites install and the SharePoint software using what is configured in config.xml.
Note: This cmdlet requires 7zip install on the local computer. In case you do not have this installed, you can use -noZip parameter to skip the EXE creation.
You can download the latest release of this module at http://pssp2010utils.codeplex.com/releases/view/44701