Thursday, February 16, 2012

Activate a Feature on all SiteCollections

$FeatureId = $(Get-SPFeature -limit all | where {$_.displayname -eq "OfficeWebApps"}).Id
Get-SPSite -limit ALL |foreach{Enable-SPFeature $FeatureId -url $_.URL }

No comments:

Post a Comment