When you migrate a user from one domain to another or rebuild a Windows profile, OneDrive for Business Known Folder Move can create duplicate Desktop, Documents, and Pictures folders. Instead of redirecting the existing folders, OneDrive creates new empty folders alongside the originals. This behavior occurs because Known Folder Move compares the user profile SID, not the folder path, to determine which folders to move. This guide explains why the duplication happens and provides a step-by-step fix to consolidate the folders and restore normal sync behavior.
Key Takeaways: Fix Duplicate Folders Caused by Domain Profile Migration
- OneDrive Settings > Sync and backup > Manage backup: Stop Known Folder Move before migrating a user profile to prevent duplicate folder creation.
- File Explorer > This PC > Local Disk (C:) > Users > OldUsername: Manually merge contents from the duplicate folder back into the original Known Folder Move target folder.
- Group Policy: Set the maximum size of a user’s OneDrive that can move automatically: Prevents Known Folder Move from triggering on profiles with existing redirected folders during migration.
Why Known Folder Move Creates Duplicate Folders After a Domain Migration
Known Folder Move relies on the Windows user profile SID to identify the Desktop, Documents, and Pictures folders. When you migrate a user from one domain to another, the SID changes even if the user account name remains the same. OneDrive sees the new profile as a completely new user environment and creates new folders under the OneDrive root. The original folders remain in place because OneDrive does not remove or update the old SID-based references.
The duplicate folders appear in File Explorer as two sets of Desktop, Documents, and Pictures. One set is the original local folder (or the previously redirected OneDrive folder from the old profile). The other set is the new empty folder that OneDrive created for the new profile. Both folders sync to OneDrive, but only the new folder is actively connected to Known Folder Move. The old folder becomes an orphaned sync relationship that OneDrive cannot manage automatically.
The Role of the Registry in Duplicate Folder Detection
OneDrive stores the Known Folder Move status in the registry under HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts\Business1. When the SID changes, OneDrive cannot match the registry entry to the new profile. It then creates a fresh entry and a new set of folders. The old registry entry remains but is no longer active. This registry mismatch is the root cause of the duplication.
Steps to Fix Duplicate Folders After a Domain Profile Migration
Follow these steps in order. Do not skip any step. Perform all actions while signed in with the new domain profile.
- Pause OneDrive sync
Right-click the OneDrive cloud icon in the system tray and select Pause syncing > 2 hours. This prevents sync conflicts while you reorganize the folders. - Identify the duplicate folders
Open File Explorer and navigate to C:\Users\YourNewUsername. Look for two folders named Desktop, two named Documents, and two named Pictures. One set will have a OneDrive icon overlay. The other set will have a normal folder icon. - Stop Known Folder Move for the new folders
Open OneDrive Settings by right-clicking the cloud icon and selecting Settings. Go to Sync and backup > Manage backup. Click Stop backup for Desktop, Documents, and Pictures. Confirm the prompt. This disconnects the new empty folders from OneDrive. - Merge the original folder contents into the new folders
Open the original folders (the ones with the OneDrive icon overlay from the old profile). Select all files and folders inside each original folder. Press Ctrl+X to cut them. Navigate to the corresponding new folder (the one with the normal icon). Press Ctrl+V to paste. If prompted, choose Replace the files in the destination. - Rename the original empty folders
After moving all content, the original folders should be empty. Right-click each original folder and select Rename. Add “-Old” to the end of each folder name. For example, rename Desktop to Desktop-Old. This prevents OneDrive from confusing the folders later. - Re-enable Known Folder Move on the correct folders
Open OneDrive Settings again. Go to Sync and backup > Manage backup. Click Start backup for Desktop, Documents, and Pictures. OneDrive will detect the existing content in the new folders and begin syncing them. No duplicate folders are created this time because the SID now matches the profile. - Resume syncing
Right-click the OneDrive cloud icon and select Resume syncing. Allow sync to complete. Verify that only one set of Desktop, Documents, and Pictures appears in File Explorer and in the OneDrive web interface. - Delete the old empty folders
After confirming that all files have synced correctly, delete the folders you renamed with “-Old”. Right-click each folder and select Delete. Empty the Recycle Bin.
If You Still See Duplicate Folders After the Main Fix
Duplicate folders appear in OneDrive online but not in File Explorer
This happens when the old profile’s sync relationship is still active in the cloud. Sign in to onedrive.com with your work account. Navigate to the old folder names (for example, Documents-Old). Select the folder and click Delete. Empty the Recycle Bin. Then follow steps 6 through 8 above to re-enable Known Folder Move.
Known Folder Move button is grayed out
A grayed-out Manage backup button indicates a group policy restriction. Contact your IT administrator. They can enable Known Folder Move in the Microsoft 365 admin center under Settings > Org settings > OneDrive > Sync. The policy “Allow syncing OneDrive accounts for only specific organization” must include your domain.
OneDrive creates a third set of folders after re-enabling Known Folder Move
This occurs if you did not rename or delete the old empty folders before re-enabling Known Folder Move. OneDrive sees two folders with the same name and creates a third folder with a numerical suffix. Repeat steps 1 through 8, ensuring you rename the old folders in step 5 before re-enabling Known Folder Move.
Known Folder Move Behavior: Domain Migration vs Fresh Profile
| Item | Domain Migration | Fresh Profile |
|---|---|---|
| User profile SID | Changes to a new SID | New SID is generated |
| OneDrive folder detection | Creates new folders because old SID is not found | Creates new folders because no previous folders exist |
| Duplicate folder risk | High — old folders remain from previous profile | None — no previous profile exists |
| Recommended action before migration | Stop Known Folder Move and move files manually | No action needed |
| Post-migration folder merge | Required — manual cut and paste | Not required |
The key difference is the presence of orphaned folders from the old profile. In a fresh profile, OneDrive has no previous folder references and creates the correct structure automatically. In a domain migration, the old folders remain and cause the duplication.
You can now identify and fix duplicate folders created by Known Folder Move after a domain profile migration. The manual merge process in this guide restores a single set of synced folders without data loss. To prevent the issue in future migrations, stop Known Folder Move before the profile change and re-enable it after the migration completes. Use the registry path HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts\Business1 to verify that only one active sync relationship exists per user.