February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You need to obtain a metadata crawled property reference for use in other search cmdlets.
Solution: Use the Get-SPEnterpriseSearchMetadataCrawledProperty cmdlet to assign a variable the results using the -Identity and -SearchApplication parameters.
Providing the identity of the metadata crawled property with the Get-SPEnterpriseSearchMetadataCrawledProperty cmdlet retrieves a specific metadata crawled property for the specified search service application. Use this to assign the results to an object for use in other cmdlets, as shown in Listing 13.13.
Listing 13.13. Assigning a Variable to a Specific Metadata Crawled Property
$ssApp = Get-SPEnterpriseSearchServiceApplication-Identity ...
Read now
Unlock full access