Thursday, 5 December 2013

Powershell scripts in Sharepoint 2013

Add Solution

Add-SPSolution -LiteralPath C:\test.Application.wsp


Deploy Solution For all Web Applications


Install-SPSolution -Identity test.Application.wsp -AllWebApplications -GACDeployment -Force

Deploy Solution For Specific Web Applications

Install-SPSolution –Identity $wsp -GACDeployment -force -WebApplication "http://test.com"


Update WSP in Sharepoint

Update-SPSolution -Identity ListDefinition.wsp -LiteralPath "C:\Users\Desktop\published\ListDefinition.wsp"-GACDeployment

Backup site collection

Backup-SPSite http://test:11111/test -Path C:\Backup\testBack.bak

Enable the SharePoint Server Publishing Feature


Enable-SPFeature -Identity "PublishingWeb" -Url http://test\

No comments:

Post a Comment