Sunday, February 10, 2013

Step by Step Procedure to Migrate sites from SharePoint 2010 to SharePoint 2013

Hi Again,

In this post, I will show how to migrate sites from SharePoint 2010 to SharePoint 2013.

Steps for Migrating SharePoint 2010 site to SharePoint 2013

1. Take backup of SharePoint 2010 Content database
2. Restore the SharePoint 2010 Content database in SQL Server 2012
 























3. Create a claims based web application. I want to use windows authentication. So I have selected “Enable Windows Authentication” checkbox while creating new web application.
















4. Note that classic authentication mode is removed by default in create web application page. You can create classic web application using PowerShell only.

5. We see that web application is created in Central Administration page










6. Open “SharePoint 2013 Management Shell” as Administrator
7. Detach the content database for the newly created web application using the below PowerShell command
    Dismount-SPContentDatabase -Identity "WSS_Content_SharePoint2013DB_4444"













8. Attach the Restored SP2010 Content database to the newly created SP2013 Web Application using PowerShell command

Mount-SPContentDatabase -Name WSS_Content_SharePoint2010ContentDatabase -DatabaseServer SHAREPOINT2013\SHAREPOINT -WebApplication http://sharepoint2013:4444/
















9. Depending on your project requirements, you may need to perform additional tasks
  • Update Web.config with
    • Connection strings to database (In case custom database is used)
    • Safe controls for Dll’s
  • Update Visual Studio code to VS 2010 (Applicable if 14 hive was used by your code. This needs to updated to 15 hive)
  • Update master page and page layouts to use dll’s of version 15.0.0.0. Note that we still have 14.0.0.0 version for Master page and Page layouts even after migration   
10. Browse the SharePoint 2013 site now and I got an access denied error as shown below












11. This is because the content database has got primary and secondary administrators of SharePoint 2010 site. This is not valid in my case since SharePoint 2013 is on another domain as shown below















12. Hence, I need to change the primary and secondary administrators to valid users as shown below and click OK to save changes

13. Welcome to your SharePoint 2013 Site! :)















14. Note that we are still in SharePoint 2010 UI. We also got a message to experience SharePoint 15 features. Click Start now

15. We get an “Upgrade Site Collection” page. Click “Upgrade this site collection”
















16. We get a popup. Click “I am ready”. Note that in SharePoint 2010 Visual upgrade, even though the site has been updated to SharePoint 2010 UI, we can still revert back to SharePoint 2007 UI using PowerShell. This is not the case with SharePoint 2013. Once the site is converted to SharePoint 2013, this cannot be reverted back to SharePoint 2010. 















17. You can see the upgrade status in Site Upgrade Status page 
       (http://<SiteUrl>/_layouts/15/siteupgradestatus.aspx)
       
      Upgrade Screen 1















       Upgrade Screen 2















18. Once, the upgrade is completed, we get a Upgrade Successful message













19. And, finally, here is our SharePoint 2013 site! :)















20. Everything got migrated properly without any issues. Kudos to the Microsoft SharePoint team for doing such an excellent job. Cheers!

1 comment:

  1. Nice, looking forward to seeing these new posts especially with the scenario you’re building for SharePoint 2013 blogs!
    SharePoint Online Training

    ReplyDelete