Automatic Solution Installation

Sometime when administrators need to prepare a new SharePoint environment, a number of features need to be installed and deployed. New solutions cannot be added from the user interface, only with STSADM or PowerShell. Third-party solutions usually have a built-in installer, but most free solutions or in-house solutions do not come with one. To install and deploy these features, you need to run a few cmdlets. The following script is going to ease that procedure for you.

The following sample “connects” a number or built-in cmdlets and creates a single function that streamlines the installation process. The script is listed here:

To execute this script, call it with

Install-SPFeatures "C:\Installation-Store\"

Get Microsoft SharePoint 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.