Powershell commands for File Types in SharePoint 2010 content index
Powershell commands for adding, deleting and getting the file types in the content index.
Add a new file type to the content index
$searchApplicationName = Get-SPEnterpriseSearchServiceApplication "<NAME OF YOUR SEARCH SERVICE APPLICATION>"
$searchApplicationName | New-SPEnterpriseSearchCrawlExtension "ascx"
List a particular file extension
$searchApplicationName = Get-SPEnterpriseSearchServiceApplication "<NAME OF YOUR SEARCH SERVICE APPLICATION>"
$searchApplicationName | Get-SPEnterpriseSearchCrawlExtension "ascx"
Display list of all file extensions
$searchApplicationName = Get-SPEnterpriseSearchServiceApplication "<NAME OF YOUR SEARCH SERVICE APPLICATION>"
$searchApplicationName | Get-SPEnterpriseSearchCrawlExtension
Delete an extension
$searchApplicationName = Get-SPEnterpriseSearchServiceApplication "<NAME OF YOUR SEARCH SERVICE APPLICATION>"
$searchApplicationName | Get-SPEnterpriseSearchCrawlExtension "ascx"| Remove-SPEnterpriseSearchCrawlExtension
No comments:
Post a Comment