Share via


Powershell to get all Sharepoint search Managed Properties in csv

In order to get all the managed properties in csv format you need to get the search application object and then then get the managed properties from it and then put that output in a csv file.This would just require two lines of powershell.

The below command would get search application object

$searchapp = Get-SPEnterpriseSearchServiceApplication

This would get all the managed properites and put it into CSV file

Get-SPEnterpriseSearchMetadataManagedProperty -SearchApplication $searchapp | Export-Csv -Path c:\webdetails.csv –notype