LoGanathan

About Me
I am LoGanathan. I am a Software professional. I write here on the technologies that I like, learn and use.

Thursday, 4 October 2012


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-SPUserSolutioncommand 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
Categories:

0 comments:

Post a Comment