Add solution
-------------
Add-SPSolution "c:\code\bin\debug\SharePointProject2.wsp"
install for one webapplication
------
Install-SPSolution –Identity SharePointProject2.wsp –WebApplication "http://sp2010" -GACDeployment
install for all webapplications
---------
Install-SPSolution -Identity SharePointProject2.wsp -AllWebApplications -GACDeployment
update
------
Update-SPSolution –Identity SharePointProject2.wsp –LiteralPath c:\code\SharePointProject2.wsp –GACDeployment
un-install
----------
Uninstall-SPSolution –Identity SharePointProject2.wsp –WebApplication http://sp2010
Uninstall-SPSolution -identity SharePointProject2.wsp -allwebapplications -Confirm:$false
remove
-------
Remove-SPSolution –Identity SharePointProject2.wsp
Backup site collection
------
Backup-SPSite –identity "http://domainName:2711" –path "C:\BackupFolder\mybackup.bak" -NoSiteLock
Restore site collection
--------------
Restore-SPSite –identity "http://domainName:2711" –path "C:\BackupFolder\mybackup.bak" –force
Restore-SPSite -Identity http://singhealthapps/sites/apims_dashboard -Path D:\Deployments\SHIntranet\2015\APR\14\Deployments\apimsbak\apims.bak -Verbose -DatabaseName WSS_Content_DBName
change user emailID using powershell
---------------
Set-SPUser -Identity ‘ISUZU03\keysuggestor1’ –Web http://isuzu03 –Email "siva.sankar@xx.com"
Export sitecollection using powershell cmd
Export-SPWeb http://siteurl/ -Path "D:\venkat\LAB.bak" -IncludeUserSecurity
Import sitecollection using powershell cmd
Import-SPWeb –Identity http://Siteurl/ -Path "D:\venkat\LAB.bak" -IncludeUserSecurity
if the bak file is more than 25 mb then import cmd gives error. In that case we need to compressionsize perameter to takecare abt that.
Export-SPWeb http://mysite -Path c:\backup\ExportFile -CompressionSize 1000 -IncludeUserSecurity
Reference:
http://webborg.blogspot.sg/2008/01/find-cexportsettingsxml-error-when.html
No comments:
Post a Comment