Hi All,
In a following post we will see Power shell commands which are used to Add, Install, Un-Install, Remove and Update the wsp packages in SharePoint.
You can download the above all commands from the below link.
Note: change your wsp and path as per your convenience.
Thanks.
In a following post we will see Power shell commands which are used to Add, Install, Un-Install, Remove and Update the wsp packages in SharePoint.
Open the SharePoint 2010/2013 Management shell as an
Administrator.
Add WSP Package:
Syntax: Add-SPSolution -LiteralPath "Path of the wsp file"
Example: Add-SPSolution -LiteralPath "C:\Users\Desktop\sample.wsp"
Install WSP Package:
Syntax: Install-SPSolution -Identity "<<name of the wsp file>>" -WebApplication "<<Web Application URL>>" -GACDeployment
Example: Install-SPSolution -Identity "sample.wsp" -WebApplication "http://abc:1947" -GACDeployment -CompatibilityLevel 15
Un-Install WSP Package:
Syntax: Uninstall-SPSolution -Identity "sample.wsp" -WebApplication "http://abc:1947"
Example: Uninstall-SPSolution -Identity "sample.wsp" -WebApplication "http://abc:1947"
Remove WSP Package:
Syntax: Remove-SPSolution -Identity "sample.wsp"
Example: Remove-SPSolution -Identity "sample.wsp"
Update WSP Package:
Syntax: Update-SPSolution -Identity "sample.wsp" -LiteralPath "C:\Users\Desktop\sample.wsp" -GACDeployment
Example: Update-SPSolution -Identity "sample.wsp" -LiteralPath "C:\Users\Desktop\sample.wsp" -GACDeployment
You can download the above all commands from the below link.
Download Link:
https://sites.google.com/site/sharepointkitchenblog/WSP_Commands.txtNote: change your wsp and path as per your convenience.
Thanks.
0 comments:
Post a Comment