Migrate users after farm migration

Recently, after a migration from SP2010 to SP2013, we encountered a ‘problem’ with users.
Certain users were found twice in ‘persons and groups’ under site settings of several sites.
The differences between the two were:
1. domain\username
2. i:0#.w|domain\username (AD synced)
If u would search for a user (perhaps for giving permissions) you’d find only one (the AD synced one).
So Powershell had to come to the rescue.
This script below will migrate all users, sometimes you need to execute it several times.
It converts classic users to claims based.

Leave a Reply