Now, let see how to deploy the SharePoint 2010 solution using
Powershell
Step1: Start->All
Programs->MicrosoftSharepoint2010Products->open
Sharepoint2010Managementshell
Type the command
Step2: Add-SPSolution “C:\SharePoint2010Solution.wsp”
Step3: Install-SPSolution –Identity
SharePoint2010Solution.wsp –WebApplication http://myserver –GACDeployment.
If you
are using Sandbox Solution,
Step4: Install-SPUserSolution –Identity SharePoint2010Solution.wsp
–WebApplication http://myserver –GACDeployment.
For
Updating the Sharepoint 2010 Solution type the following commands
Step5: Update-SPSolution –Identity
SharePoint2010Solution.wsp –LiteralPath “C:\SharePoint2010Solution.wsp” –GacDeployment
For retract and remove a solution,
type the following commands:
Step7: Remove-SPSolution–Identity MySharePointSolution.wsp
No comments:
Post a Comment