The following PowerShell script can be used to add Search Crawl properties and Managed properties. The properties are added based on vales read from an XML file. This script comes in handy if you have multiple properties you need to add to multiple environments.
Here’s a sample of the XML file where the properties to be added can be read from:
Technet link for cmdlet New-SPEnterpriseSearchMetadataCrawledProperty to add a new crawl property.
Technet link for cmdlet New-SPEnterpriseSearchMetadataManagedProperty to add new managed property.
Technet link for cmdlet New-SPEnterpriseSearchMetadataMapping to add new mapping to a managed property.
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using RSS
Just what the doctor ordered - Nice script, nice work, great community contribution!
You are great dude..thanks..may God bless you..Thanks!