سؤال

I have added a Farm scope feature stapler that staples an existing feature and that existing feature deploys master page. When i create a new site collection, the master page deploys automatically. I have many site collections that are already created before feature stapling. Now my question is how the feature stapling will effect the existing site collections?

enter image description here Is there any way to do this by Power Shell?

هل كانت مفيدة؟

المحلول

Stapling only affects new Sites.

You can use PowerShell to iterate all your sites and activate your MasterPage Feature

Ge-SPWebApplication "your web app url" | Get-SPSite -Limit all | %{ Enable-SPFeature -ID "<Your Feature ID>" -Url $_.Url }
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top