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
===========================
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
No comments:
Post a Comment