Get a Specific Enterprise Search Service Application

Scenario/Problem: You need to obtain an Enterprise Search Service application reference.

Solution: Use the Get-SPEnterpriseSearchServiceApplication cmdlet to assign a variable the results using the -Identity parameter.

Providing the identity of the Enterprise Search Service application with the Get-SPEnterpriseSearchServiceApplication cmdlet retrieves a specific Enterprise Search Service application. Use this to assign the results to an object for use in other cmdlets, as shown in Listing 13.7.

Listing 13.7. Assigning a Variable to a Specific Search Service Application

$ssApp = Get-SPEnterpriseSearchServiceApplication-Identity 81aedaf7-704c-47f4-8173-5e99a7495ac3

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.