How Feature stappling will effect the existing site collections?
-
01-10-2020 - |
Domanda
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?
Is there any way to do this by Power Shell?
Soluzione
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 }
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange