Power Sell Admin Commands

Add-SPSolution c:\code\SharePointProject2\bin\debug\SharePointProject2.wsp

Install-SPSolution –Identity SharePointProject2.wsp –WebApplication http://sp2010 -GACDeployment

Update-SPSolution –Identity youreWSPName.wsp –LiteralPath C:\Solutions\youreWSPName.wsp –GACDeployment

Uninstall-SPSolution –Identity SharePointProject2.wsp –WebApplication http://sp2010

Remove-SPSolution –Identity SharePointProject2.wsp


Get-SPFeature

Get-SPFeature –Site http://sp2010

Get-SPFeature –Identity Reporting –Site http://sp2010

Enable-SPFeature –Identity Reporting –url http://sp2010

Disable-SPFeature –Identity Reporting –url http://sp2010





/****************** BACKUP and Restore Site Collection ******************/

Backup-SPSite -Identity http://testSite/sites/orf/ -Path "c:\backup\file.bak"


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


/****************** BACKUP and Restore Site Collection ******************




/*************** Backup WSP from Central Admin ******************/
$farm = Get-SpFarm
$file = $farm.Solutions.Item(“FileName.wsp”).SolutionFile
$file.SaveAs(“c:\FileName.wsp”)




Import-SPWeb -identity http://intranet.contoso.com/Sites/HR -path c:\ Backup\HRExport.cmp

Comments

Popular posts from this blog

Clearing the Configuration Cache for SharePoint

SharePoint 2013 REST API CRUD Operations

Add List Item Attachments to Task Form using Nintex Workflow and Forms