SharePoint Blog – René Hézser

How To install SharePoint 2010 prerequisites automatically

SharePoint 2013:

If you want to install the prerequisites for SharePoint 2013, see here: Installing SharePoint 2013 Prerequisites Without an Internet Connection

SharePoint 2010:

Don’t leave if you read “Powershell” and think “Oh my. Why does it take Powershell to do this?”. Powershell is easy to use and a great tool for this task.

This post is about installing all required components that are needed for a SharePoint 2010 installation (Hardware and software requirements (SharePoint Server 2010)).

So what are we going to to?

  1. Download required software
  2. Create a Powershell script to install the requirements
  3. Install required software

Download required software

The advantage of downloading the required components prior installing SharePoint is, that we can use the downloaded bits on many servers. The size of all these components is about 387 MB. So even if you have a fast internet connection, it might be worth downloading them.

A Powershell script for downloading all required software can be downloaded here: http://autospinstaller.codeplex.com/releases/view/44442

When you start the script, it will ask where you want the downloaded files to be saved.

 image

I’ve copied the content of the SharePoint 2010 Installation bits to a local folder. e.g. C:\Install\SP2010Bits

Then the folder for would be c:\Install\SP2010Bits\PrerequisiteInstallerFiles

Create a Powershell script to install the requirements

A Powershell script in the Rootfolder of the SharePoint bits will install the required software. Create a new file “c:\Install\SP2010Bits\InstallPrerequisites.ps1”. The content of the file would be

So you have the SharePoint 2010 Bits in a folder. In the same folder is the install script, and in a subfolder “PrerequisiteInstallerFiles” all requirements.

image

Install required software

Just run the script from within Powershell 🙂

image

Now you are ready to install SharePoint 2010.

If you get an exception like this, set the execution policy “Set-ExecutionPolicy RemoteSigned“ in a Powershell window.

File C:\install\SP2010Bits\InstallPrerequisites.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.

At line:1 char:27

+ .\InstallPrerequisites.ps1 <<<<

    + CategoryInfo          : NotSpecified: (:) [], PSSecurityException

    + FullyQualifiedErrorId : RuntimeException

3 comments for “How To install SharePoint 2010 prerequisites automatically

  1. 14th July 2010 at 20:49

    Much appreciated. Thank you & @SharePointBuzz

  2. 26th April 2013 at 16:31

    Works fine. thank you …
    Your site is the only one i found that well take care that the prerequisite ‘FilterPack.msi’ MUST be placed in a folder ‘FilterPack’ within the ‘PrerequisteInstallerFiles’ folder.
    You have no opportunity to use another path for the filter pack, even if this other path should be stipulated in the prerequisiteInstaller.exe’s agruments: /FilterPack:path\FilterPack.msi

  3. 7th August 2014 at 21:45

    Thank you for provide this scripts, but I have a question, for the script to install the prerequisites I executed but not workin for me, please can you help me, thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.