With our custom branding solution deployed to the SharePoint farm, we need to activate the site collection feature. The simplest method to activate the site collection feature on all site collections is using PowerShell.
Follow these steps to activate the feature on each site collection in the farm:
Assign the
SiteCollectionBranding
feature ID to a PowerShell variable, using the following command:$brandingFeatureId = [GUID]"19e46226-efb9-4761-b09a-cb8711fd503a"
Use the
Get-SPWebApplication
Cmdlet to get the content web applications and iterate through them as follows:foreach ($webApp in (Get-SPWebApplication))
Iterate through each site collection in the web application using the following code:
foreach ($site in $webApp.Sites)
Ensure the site collection is in 2013 mode.
if ($site.CompatibilityLevel –eq 15)
Verify that the
SiteCollectionBranding
feature is in the collection of activated features on the...