When you migrate user profiles from one domain to another, Known Folder Move in OneDrive can create duplicate folders such as Desktop, Documents, and Pictures. This happens because OneDrive associates the folder redirection with the original user security identifier and cannot reconcile the new domain profile path. The result is two sets of the same known folders inside the user’s OneDrive, which causes confusion and duplicates files.
The root cause is that Known Folder Move uses the local folder GUID and the user’s security token to establish the redirect target. After a domain migration, the user’s security identifier changes, and Windows creates a new user profile folder. OneDrive sees the new profile location as a separate set of folders and starts backing them up independently, while the old redirect remains active but orphaned.
This article explains why duplicate folders appear after a domain profile migration, provides a pre-migration checklist to prevent duplicates, and details the post-migration cleanup steps if duplicates have already occurred. You will learn how to use the OneDrive admin console, Group Policy settings, and manual folder manipulation to resolve the issue.
Key Takeaways: Preventing Duplicate Known Folders After Domain Migration
- Group Policy > Known Folder Move policy: Set the policy to “Prompted” or “Disabled” before the migration to stop automatic folder backup during profile creation.
- OneDrive admin center > Sync > Known Folder Move: Configure tenant-wide silent move settings to require admin approval before redirecting new profiles.
- Manual folder unlink via OneDrive Settings > Sync and backup > Manage backup: Remove the duplicate folder redirect and re-point OneDrive to the correct profile folders after migration.
Why Known Folder Move Creates Duplicates During Domain Profile Migrations
Known Folder Move relies on the Windows user profile folder path and the user’s security identifier to determine which folders to redirect. When a user signs in to a domain-joined computer, Windows creates a profile folder under C:\Users\ with the user’s logon name. OneDrive reads the known folder GUIDs from the registry and maps them to the OneDrive cloud location.
During a domain migration, the user’s security identifier changes because the new domain issues a new SID. When the user signs in to the new domain, Windows creates a fresh profile folder, often with the same name but a different underlying SID. OneDrive detects the new known folder locations and initiates Known Folder Move for those folders, creating a second set of Desktop, Documents, and Pictures in the user’s OneDrive. The original set remains because the old redirect is still active in the OneDrive sync configuration.
This behavior is by design: OneDrive does not automatically detect that the old and new folders represent the same user data. The admin must intervene before the migration to prevent the duplication or clean it up afterward.
Pre-Migration Checklist to Prevent Duplicate Folders
Complete these steps before migrating user profiles to a new domain. This checklist assumes you have administrative access to Group Policy and the OneDrive admin center.
- Disable Known Folder Move for all affected users via Group Policy
Open the Group Policy Management Console. Navigate to Computer Configuration > Administrative Templates > OneDrive. Set the policy “Silently move Windows known folders to OneDrive” to Disabled. This stops OneDrive from automatically backing up new known folders when the user signs in with the new domain profile. - Configure the OneDrive admin center to require admin approval for Known Folder Move
Sign in to the Microsoft 365 admin center. Go to Settings > Org settings > OneDrive > Sync. Under Known Folder Move, select “Only allow Known Folder Move for users who have been granted access by an admin.” This prevents users from enabling the feature themselves after the migration. - Unlink the existing OneDrive account before the migration
Instruct users to right-click the OneDrive cloud icon in the taskbar, select Settings, go to Account, and click Unlink this PC. This disconnects the current sync relationship and prevents conflicts during the profile change. After unlinking, the user’s files remain in OneDrive online. - Back up the current known folder contents
Before the migration, ensure that all files in Desktop, Documents, and Pictures are fully synced to OneDrive. Check the sync status in OneDrive Settings > Sync and backup > Manage backup. All three folders should show a green check mark. This ensures no data loss when the new profile is created. - Document the current folder redirect paths
Run the following PowerShell command as an admin on a test machine:Get-ItemProperty -Path 'HKCU:\Software\Microsoft\OneDrive\Accounts\Business1' -Name 'UserFolder'. Record the folder paths. You will need these to verify the redirect after migration.
Post-Migration Cleanup for Existing Duplicate Folders
If duplicates have already appeared, follow these steps to remove the extra copies and restore a single set of known folders. Perform these steps for each affected user.
- Identify the duplicate folder set
Open File Explorer and navigate to the user’s OneDrive folder. Look for two folders named Desktop, Documents, and Pictures. One set typically has a suffix such as (1) or a different creation date. The older set contains the original synced files. The newer set is empty or contains files created after the migration. - Stop Known Folder Move for the duplicate set
Right-click the OneDrive cloud icon in the taskbar and select Settings. Go to Sync and backup > Manage backup. Click Stop backup for each duplicate known folder. This removes the redirect for the new profile folders but leaves the files in the OneDrive cloud. - Move files from the duplicate folder to the original folder
Open the duplicate folder in File Explorer. Select all files and folders inside it. Press Ctrl+X to cut them. Navigate to the original known folder in the user’s local profile, not in OneDrive. Press Ctrl+V to paste. Accept any merge prompts. This consolidates the data into the correct profile location. - Re-enable Known Folder Move for the original folders
In OneDrive Settings > Sync and backup > Manage backup, click Manage backup again. Select the original Desktop, Documents, and Pictures folders from the correct profile path. Click Start backup. OneDrive will re-establish the redirect to the original folder set, and no duplicates will appear. - Delete the duplicate cloud folder
Open OneDrive in a web browser. Navigate to the duplicate folder set. Select all folders in the duplicate set, click Delete, and then confirm. This removes the extra cloud copies. The original set remains intact.
If Duplicates Still Appear After Cleanup
OneDrive shows a red circle with a minus sign on known folders after migration
This indicates that OneDrive is unable to sync the folder because the redirect path is corrupt. Open OneDrive Settings > Account > Unlink this PC. Restart the computer, then sign in to OneDrive again. Re-enable Known Folder Move for the correct folders. The red circle should change to a green check mark.
The old known folder redirect persists in the registry after unlinking
Run the following PowerShell command as the user to remove stale registry entries: Remove-Item -Path 'HKCU:\Software\Microsoft\OneDrive\Accounts\Business1\KnownFolders' -Recurse -Force. This clears all cached folder redirects. Then restart OneDrive and re-enable Known Folder Move.
Duplicate folders reappear after the next sync cycle
This happens when OneDrive is still configured to auto-redirect new known folders. Verify the Group Policy setting is Disabled and the admin center policy requires admin approval. If the policies are correct, run the OneDrive diagnostic tool by pressing Windows key + R, typing %localappdata%\Microsoft\OneDrive\OneDrive.exe /reset, and pressing Enter. Wait 5 minutes, then start OneDrive manually from the Start menu.
Known Folder Move Behavior: Pre-Migration vs Post-Migration Approach
| Item | Pre-Migration (Prevention) | Post-Migration (Cleanup) |
|---|---|---|
| Description | Disable Known Folder Move before the new profile is created | Remove duplicate folders after they appear |
| User impact | No interruption; folders remain synced | User sees duplicate folders and must move files |
| Admin effort | Group Policy and admin center configuration | Per-user manual folder manipulation |
| Data safety | No risk of data loss | Risk of accidental deletion if user deletes wrong folder |
| Time to complete | 30 minutes for policy setup | 15–20 minutes per affected user |
The pre-migration approach is strongly recommended because it avoids data confusion and reduces support tickets. The post-migration approach works but requires careful file movement and verification.
After completing the cleanup or prevention steps, test the sync status by opening OneDrive Settings > Sync and backup > Manage backup. All three known folders should display a green check mark. Verify that the OneDrive cloud view shows only one set of Desktop, Documents, and Pictures.
For future domain migrations, create a Group Policy object that disables Known Folder Move and deploy it to all workstations before the migration date. After the migration completes and the new profiles are stable, enable Known Folder Move again. This pattern prevents duplicates entirely.