SharePoint 2010: Disable Feature on all Web Applications PowerShell

| Posted in PowerShell, Programming, SharePoint

Because it’s easier to copy+paste this later… This will disable a feature on all web applications in a farm. Very convenient for when you’re removing a feature from a solution.

[code lang=”ps”] Get-SPWebApplication | ForEach-Object {Disable-SPFeature "Solution.Name_FeatureName" -url $_.Url;} [/code]