Thursday, 4 October 2012

Adding and Deploying SharePoint 2010 Solution with using PowerShell


PowerShell command are,

Backup a Site Collection with PowerShell command
Backup-SPSite -Identity http://myserver -Path "c:\......bak"

Restore a Site Collection with PowerShell command
Restore-SPSite -Identity http://myserver -Path "c:\........bak"
Note: To restore site collection you’ll use the following command. Use –Force if you want to overwrite the existing site collection

WSP Solutions in PowerShell
Add-SPSolution “D:\Deploy\MySharePointSolution.wsp“

Install-SPSolution –Identity MySharePointSolution.wsp –WebApplication http://myspwebapp –GACDeployment

If you would like to add the solution as sandboxed, you would use the Install-SPUserSolution command instead. To upgrade a solution, we specify which solution is to be updated and with which new solution file:
Update-SPSolution –Identity MySharePointSolution.wsp –LiteralPath 
“D:\Deploy\MySharePointSolution.wsp” –GacDeployment

To retract and remove a solution, we use the following commands:
Uninstall-SPSolution –Identity MySharePointSolution.wsp –WebApplication http://myspwebapp
Remove-SPSolution–Identity MySharePointSolution.wsp

No comments:

Post a Comment

KendoUI Chart using in AngularJS with Dynamic data

Here i'm going to do the KendoUI Chart using AngularJS  and getting dynamic data from angular services. First need to down-lode the r...