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

Add a Comment

Your email address will not be published. Required fields are marked *