Display Available Service Applications on the Farm

Scenario/Problem: You need to obtain a service application reference and therefore need a listing of available service applications.

Solution: Use the Get-SPServiceApplication cmdlet without any parameters to retrieve all available service applications.

To obtain a service application reference object, you need to find the identity of the service application. Using the Get-SPServiceApplication by itself (see Listing 6.2) displays all available service applications, as shown in Figure 6.1.

Listing 6.2. Displaying All Available Service Applications

Get-SPServiceApplication

Image

Figure 6.1. Get-SPServiceApplication ...

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.