Question

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

Était-ce utile?

La 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:

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top