Skip to main content

SharePoint Migration from SharePoint 2010 to SharePoint 2013

 If you are trying to Migrating SharePoint 2010 to SharePoint 2013, here are few of the steps, you can follow:

Move the Database from old SQL instance to new one

1.       Take DB backup of the SharePoint content databases by command or using SSMS
2. Restore the database - Execute the following command in SQL

USE [master]
RESTORE DATABASE
[WSS_Content_1010_ABC] 
FROM  DISK =
N'<yourPath\bak.bak>' WITH  FILE = 1, 
MOVE N'WSS_Content_ABC' TO N'<PATH>\WSS_Content_ABC.mdf',  
MOVE N'WSS_Content_ABC1' TO N'D:\SQL_Sharepoint\DATA\WSS_Content_ABC_new.ndf',  
MOVE N'WSS_Content_ABC_log' TO N'<Path>\WSS_Content_ABC_log.ldf', 
NOUNLOAD,  STATS = 5
GO


2.       Create a new webapp in classic mode using PowerSheel


  New-SPWebApplication -Name {Name} -ApplicationPool {ApplicationPool} -AuthenticationMethod {WindowsAuthType} -ApplicationPoolAccount {ApplicationPoolAccount} -Port {Port} -URL {URL}

3.       Remove content DB

Run following Powersheel command
Dismount-SPContentDatabase "{ContentdBName}"

4.       Test Old Content Database

Run following Powersheel command
Test-SPContentDatabase -Name '{database name}' -WebApplication {url of web application} | Out-File {log path}

5.       Attach the DB 


Mount-SPContentDatabase {database name} -DatabaseServer {database server name} -WebApplication {web application url} -AssignNewDatabaseId

6.   Migrate from classic to clam based

Run following Powersheel command

$webApp = Get-SPWebApplication -identity "http://trax/"

$webApp.UseClaimsAuthentication = $true

$webApp.ProvisionGlobally()

$webApp.Update()

$webApp.MigrateUsers($true)

Convert-SPWebApplication -Identity "http://trax/" -To Claims -RetainPermissions -Force

7.       Visual Migration 

Do the visual migration when the SharePoint UI asks you. 

Comments

Popular posts from this blog

Scrum Framework - advantage over traditional SDLC models

Scrum Framework - advantage over traditional SDLC models: A Software Development Life Cycle (SDLC) is essentially a series of steps, or phases, that provide a model for the development and lifecycle management of an application or piece of software. Commonly used SDLC frameworks are Waterfall, Iterative, Spiral, Agile (scrum) and RAD. All of the above models have their own merits and demerits and they are used by several organizations. Common problems in the traditional frameworks are risk of late delivery, and inaccurate requirement implementation. Now a days Scrum framework is been adopted project development teams. It provides many advantages over traditional methods and enables Project Manager to manage the project more effectively. The traditional framework provides lots of control and responsibilities to the project manager but the scrum expects the team to be more self-directed, taking more initiative. Traditional frameworks suits when the requirement is fixed but the ...

Power Shell Script to get the Event Receivers associated with a SharePoint list

Following Powershell script can be bused to get the Event Receivers associated with a SharePoint list # Define the URL and list name; $webURL = "http://192.168.0.16” $listName = “project initiation note” # Get a reference to the SharePoint web; $web = Get-SPWeb $webURL # Get a reference to the SharePoint list or library; $list = $web.Lists[$listName] # Iterate through and get the event receivers associated foreach($eventReceiverDef in $list.EventReceivers) {     if($eventReceiverDef.Name -ne “”)     {                     $eventInfo = $eventReceiverDef.Name + ” – ” + $eventReceiverDef.Type                     Write-Host $eventInfo -BackgroundColor Green -ForegroundColor Black     } } $web.Dispose()

How to delete a SharePoint list's items using powershell

How to delete a SharePoint list's items using power-shell cls $Server ="Server URL" $web = Get-SPWeb -Identity $Server; Write-Host "Web is : " $web.Title -foregroundcolor yellow $oList = $web.Lists.TryGetList("<LIST NAME>"); Write-Host "List is : " $oList.Title " with item count " $oList.ItemCount -foregroundcolor yellow $spqQuery = New-Object Microsoft.SharePoint.SPQuery $spqQuery.Query =  "<Where><And><Geq><FieldRef Name='Date' /><Value Type='DateTime'>2015-07-01T00:00:00Z</Value></Geq> <Leq><FieldRef Name='Date' /><Value Type='DateTime'>2015-07-31T00:00:00Z</Value></Leq> </And></Where>" #$spqQuery.ViewAttributes = "Scope='Recursive'" $items = $oList.GetItems($spqQuery) $collListItems = $oList.GetItems($spqQuery) $count = $collListItems.Count - 1 Write-Host $c...