February 2013
Intermediate to advanced
304 pages
8h 26m
English
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.
Listing 13.3. Assigning a Variable to a Specific Search Service Application
$ssInstance = Get-SPEnterpriseSearchServiceInstance-Identity 91d00542-76cf-417b-aafb-dbfae76a1814
Read now
Unlock full access