1

How could we disable Enterprise feature on all site collections in a farm, except on one site collection?

Is it possible at all?

1
  • please read: disable all Enterprise features on all site collections in a farm except one site collection? Commented Nov 17, 2015 at 10:03

2 Answers 2

1

You can do it with PowerShell.

Add-PSSnapin Microsoft.SharePoint.PowerShell -ea SilentlyContinue

$excludeSite = "http://servername/sites/siteToExclude"

$spWebApp = Get-SPWebApplication

foreach($site in $spWebApp.Sites)
{
    if ($site.url -ne $excludeSite)
    {
        $siteUrl = $site.url
        Write-Host "Going into SiteCollection $siteurl"
        Disable-SPFeature -identity "SharePoint Server Enterprise Site Collection features"
        Write-Host "Disabling feature in SiteCollection $siteurl"
    }
}
0

In Site Actions --> Site Collection Features of each site collection, you can disable a feature called SharePoint Server Enterprise Site Collection features on all site collections except in the one where you want to have these features enabled.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.