Dellenny

Guide me in IT world

SharePoint

Migration Scripts for SharePoint On premise

If you want to migrate your environment from old on Premise 2010 SharePoint to Newer one here are some scripts that can help you in some pieces, Like content Database migration , User Profile and Metadata.

Note if you are migrating from SharePoint 2010 to 2016 or 2019 you will need to go step by step you can not jump directly into target environment unless you use 3rd part software:

To Migrate Content Databases:

copy the database from old to new, and make sure you create new web app in the new environment

Mount the database to new environment then run following scripts

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
Test-SPContentDatabase -name WSS_Content -webapplication http://site/ 

Mount-SPContentDatabase "WSS_Content" -WebApplication http://192.168.0.107:9000 
Convert-SPWebApplication -Identity http://shsp2013:9000/sites/BPM  -To Claims -RetainPermissions -Force

Then you will be prompted -from so type Legacy

To Migrate Metadata after mounting it to new environment


Get-SPServiceApplication -Name "Managed Metadata Service"|fl

$app = Get-SPServiceApplication -Name "Managed Metadata Service"
Set-SPMetadataServiceApplication -Identity $app -DatabaseName "Managed Metadata Service_"

To Migrate User Profile after mounting database, run this:



$applicationPool = Get-SPServiceApplicationPool -Identity 'SharePoint Web Services default'

New-SPProfileServiceApplication -Name 'User Profile Service Application' -ApplicationPool $applicationPool -ProfileDBName 'User Profile Service Application_ProfileDB_2' 

sa = Get-SPServiceApplication | ?{_.TypeName -eq 'User Profile Service Application'}

New-SPProfileServiceApplicationProxy -Name 'User Profile Service Application' -ServiceApplication $sa

proxy = Get-SPServiceApplicationProxy | ?{_.TypeName -eq 'User Profile Service Application Proxy'}

Add-SPServiceApplicationProxyGroupMember -member $proxy -identity ""

More Helpful Links:

SharePoint On Premise Diagnostic (OPD) Tool available

OneDrive Personal Vault rolling

SharePoint and OneDrive: mass delete notification in Office 365

Continue working on your Android phone using Microsoft Launcher and OneDrive

Prevent sharing of OneDrive files outside your company

How to know files you shared in OneDrive

SharePoint and OneDrive integration with Adobe

OneDrive file sync and backups

OneDrive you don’t have permissions message when accessing file that you own

Asses your SharePoint before migration to Office 365

Free SharePoint Migration tool to SharePoint Online and Office 365

Checklist for migration between SharePoint versions and new farms

Microsoft SharePoint Migration Tool now supports SharePoint Server 2010 available

SharePoint Blogs