PowerShell : Install as Farm Feature

Brass Contributor



I would like to know if a farm solution needs to be installed and be activated as a farm-scoped feature (This WSP should not be found in Site collection's solution gallery), what would be PowerShell looks like targeting the SP 2013 On-premise environment?


I have the standard PowerShell script for farm solution deployment below: but not sure where to change/which parameter to add/remove for the above scenario. Or should use a totally different commands


Add-SPSolution “Your WSP Location”\”Your WSP Name”.wsp

Install-SPSolution –Identity "WSP Name".wsp –WebApplication "Site Url" –GACDeployment


if someone can help to direct me to relevant answer around this would be appreciated.

2 Replies


If your solution package (wsp file) has no WebApplication scoped features included you should be fine running the same command without the "–WebApplication" argument.

In case your package has at least one WebApplication scoped feature included with your farm scoped feature you will not be able to install the package without targeting a WA. To achieve this you will need to build a separate package for your farmed scoped feature.


Thanks Djavan ROA

This was helpful.