Question

need to add and install .wsp file to the Site Collection using PoweShell

Was it helpful?

Solution

Run this below scripts from SharePoint Management Shell:

For Farm solution

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

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

For Sandbox solution

Add-SPUserSolution -LiteralPath c:\CandidateSandboxedSolutions\MySandboxedSolution.wsp -Site http://MyServer/sites/Contoso

Install-SPUserSolution -Identity MySandboxedSolution.wsp -Site http://MyServer/sites/Contoso

Hope this will help you!

Reference:

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top