Showing posts with label SharePoint Administration. Show all posts
Showing posts with label SharePoint Administration. Show all posts

Thursday, April 14, 2016

Useful Powershell Commands of SharePoint 2013

These are the following powershell commands which is commonly used during development, Farm Creation and for Administration:

===========================
Backup & Restore
===========================

Backup-SPSite -Identity http://ServerName:port -Path "c:\backup\file.bak"

Restore-SPSite -Identity http://Servername:port -Path "c:\backup\file.bak" -force

===========================
Add and Install WSP
===========================

Add-SPSolution c:\helloworld.wsp

Install-SPSolution –Identity helloworld.wsp -GACDeployment -force -WebApplication http://portal

===========================
Remove WSP
===========================

Remove-SPSolution -Identity helloworld.wsp

===========================
Update WSP
===========================

Update-SPSolution -Identity helloworld.wsp -LiteralPath C:\helloworld.wsp -GACDeployment