Last active
August 29, 2015 14:21
-
-
Save Na0mir/4745125b0f4861845ae9 to your computer and use it in GitHub Desktop.
Delete all Managed Metadata Properties from default Search Service application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------------------------- | |
# Author: Romain Blanchard | |
# Date: 21.05.2015 | |
# Description: Delete all Managed Metadata Properties from default Search Service application | |
# ---------------------------------------------- | |
$searchapp = Get-SPEnterpriseSearchServiceApplication | |
$mp = Get-SPEnterpriseSearchMetadataManagedProperty -SearchApplication $searchapp | Where {$_.Name -like "gdoc*"} | |
$mp | % { Get-SPEnterpriseSearchMetadataMapping -SearchApplication $searchapp -ManagedProperty $_ | Remove-SPEnterpriseSearchMetadataMapping -Confirm:$false } | |
$mp | Remove-SPEnterpriseSearchMetadataManagedProperty -Confirm:$false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment