Steps to mount content Database in SharePoint using powershell commands Steps: 1) Backup the Source Machine of SharePoint Web Application content database from SQL Server. 2) Restore the Database Backup to Destination Machine in SQL Server (Database Name – “TestDB”). 3) Create a Web Application (Eg., http://Sharepoint:2018 ) in Central Admin (Note – Do not create site collection). 4) Extract All WSPs from Source Machine. 5) Deploy all WSPs to Destination Machine globally in Central Admin. 6) Remove content database for created Web Application (Eg., http://Sharepoint:2018 ). 7) Test the content database by use following script in Management Shell. a. Test-SPContentDataase –name “ TestDB ” –WebApplication “ http:// ...
Posts
Showing posts with the label sharepoint powershell
Sharepoint Powershell commands:
- Get link
- X
- Other Apps
By
Silambarasan A
-
Sitecollection Backup and Resore Backup site collection: Backup-spsite <site url> -path c:\samp\pol.bak Restore site collection: Restore-spsite <site url> -path c:\samp\pol.bak (use new blank page to restore other wise type -force) Web Backup and Restore Backup web: Import-spweb <site url> -path c:\path Restore web: Export-spweb <site url> -path c:\path Restore toplevel site to subsite Export : stsadm -o export -url <fullurl which u want to export> -filename <location:filename.dat> Import : stsadm -o import -url <destination url> -filename <location where u stored.dat file> Feature and solution installation (first copy the wsp file from documents ms sharepoint 2010 to target computer c drive) Install solution: Add-spsolution c:\solutionFile.wsp Install-spsolution -identity solutionFile.wsp...
BACKUP AND RESTORE OF A WEB(OR SUBSITE) IN SHARE POINT
- Get link
- X
- Other Apps
By
Silambarasan A
-
Backup web: Open sharepoint power shell. and type the following command on your power shell Import-spweb <fullurl which u want to backup> -path <location> Restore web: Open sharepoint power shell. and type the following command on your power shell Export-spweb <fullurl where u want to restore> -path <location>
CREATE A SITE COLLECTION BACKUP AND RESTORE IN SHAREPONT
- Get link
- X
- Other Apps
By
Silambarasan A
-
Hi, here i will explain how to create a site collection backup from one site, and restore it into another site collection. you can do it by sharepoint powershell. Backup site collection: Open site powershell any type the following command. Backup-spsite <fullurl which u want to backup> -path <location:filename.bak> Restore site collection: If you restore it in a blank site then. Open site powershell any type the following command. Restore-spsite <fullurl whereu want to restore> -path <location:filename.bak> that's it. It will restore it. Or if you restore in a team site or some data existing site then Open site powershell any type the following command. Restore-spsite <fullurl whereu want to restore> -path <location:filename.bak> -force and it will ask you for conformation. type y. and it will automatically restore in that site. That's i...
create a subsite from top level site collection:
- Get link
- X
- Other Apps
By
Silambarasan A
-
You can create a subsite from top level site collection by using power shell commends. Step 1: Get the top level site collection: Open sharepoint power shell. and type the following commend Export : stsadm -o export -url < fullurl which u want to export > -filename < location:filename.dat > Step 2: Import as a sub site of another top level site Open sharepoint power shell. and type the following commend Import : stsadm -o import -url < destination url > -filename < location where u stored.dat file > Step 3: That's it,the site will imported as a subsite. But you have to check all the webparts are correctly deployed, and you have to manually give the site user permissions. ...