Activate Feature on all Site Collections in a Web Application

| Posted in Programming, SharePoint

This is pretty easy using powerhell with SharePoint 2010:

[powershell]Get-SPWebApplication "http://WebApplicationUrl:PortIfNeeded" Get-SPSite ForEach-Object{Enable-SPFeature "Solution.Name_FeatureName" -url $_.Url}[/powershell]