PowerShell Command List used in SharePoint 2010

PowerShell Command which are common in use for a SharePoint Developer.

 

Backup
Backup-SPSite http://oldsite -Path C:backupsitename.bak

Restore
Restore-SPSite http://newsite -Path C:backupsitename.bak

Add WSP
Add-SPsolution “C:File1.wsp”

Update WSP
Update-SpSolution -Identity File1.wsp -LiteralPath “C:File1.wsp” -GACDeployment

Install WSP
Install-SPSolution -Identity “File.wsp”  -WebApplication “http://siteurl”

EnableFeature
Enable-SPFeature -identity “MyFeature” -URL “http://siteurl”

Disable Feature
Disable-SPFeature -identity “MyFeature” -URL “http://siteurl”

InstallFeature
Install-SPFeature -path “MySPFeature1”

Uninstall Feature
Uninstall-SPFeature -Identity “MySPFeature1”

Get Farm ID
(Get-SPFarm).Id

To know about String manipulation method using PowerShell command Click Here

Leave a Comment

RSS
YouTube
YouTube
Instagram