Install Service Applications

Scenario/Problem: You need to install all service applications to the farm using a script.

Solution: Use the Install-SPService cmdlet with the -Provision switch parameter.

Using the Install-SPService cmdlet installs all service applications on a server based on the services, service proxies, and service instances stored in the local registry. Using the -Provision switch parameter allows the service applications to be installed using the default settings. Listing 6.1 shows an example command line.

Listing 6.1. Installing All Available Service Applications

Install-SPService -Provision

Get PowerShell™ for SharePoint® 2013 How-To 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.