Hi All,
when you got the requirement to know the list of site collections where a specific feature got activated at the site collection level, the below script will be helpful.
For example, to know the list of site collection where the Nintex wokrflow got activated, use the below script.
when you got the requirement to know the list of site collections where a specific feature got activated at the site collection level, the below script will be helpful.
For example, to know the list of site collection where the Nintex wokrflow got activated, use the below script.
$GC = Start-SPAssignment $sites=$GC | Get-SPSite -Limit All foreach($site in $sites) { $feature=Get-SPFeature -Site $site | Where-object {$_.DisplayName -eq "NintexWorkflow"} if($feature -ne $null) { write-host "Feature activated at site" $site.Url } $site.dispose() } Stop-SPAssignment $GC
If you want the spcific publishing feature or custom feature activated site collection list, replace the feature display name with the custom one.
No comments:
Post a Comment