Note This script has been superseded by a much more robust & comprehensive script called AutoSPSourceBuilder, which not only downloads the prerequisites for SP2010/SP2013, but also language packs, cumulative updates, service packs, etc. Check it out at http://autospsourcebuilder.codeplex.com!
This script will download all files required by Prerequisiteinstaller.exe in advance, in order to support an 'offline' installation of SharePoint 2010 (that is, on a server without Internet connectivity, as is often the case). Normally it will attempt to download any missing files, which of course doesn't help you if your server can't browse the Internet. Thankfully, PrerequisiteInstaller.exe also accepts command-line switches
to allow installation from a locally-accessible file for each respective hotfix/prerequisite.
The script contains a list (current as of this writing) of the URLs for each prerequisite, and attempts to download them all in sequence. It uses the BitsTransfer
module included with Windows 7 and Win2008 (R2, at least), but hasn't yet been tested on other OSes yet.
The latest release has an updated URL for the Microsoft SQL Server 2008 Analysis Services ADOMD.NET, as suggested in http://autospinstaller.codeplex.com/discussions/261817
. Thanks to jk12345
for pointing this out!