Get a Specific Enterprise Search Service Instance
Scenario/Problem: You need to obtain an Enterprise Search Service instance reference.
Solution: Use the Get-SPEnterpriseSearchServiceInstance
cmdlet to assign a variable the results using the -Identity
parameter.
Providing the identity of the Enterprise Search Service instance with the Get-SPEnterpriseSearchServiceInstance
cmdlet retrieves a specific search service instance. Use this to assign the results to an object for use in other cmdlets, as shown in Listing 13.3.
$ssInstance = Get-SPEnterpriseSearchServiceInstance-Identity 91d00542-76cf-417b-aafb-dbfae76a1814
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.