Fix Win10 → Win11 Upgrade Failures (SetupDiag 0x000004E5: Duplicate User Profile SIDs)
This procedure resolves in-place upgrade failures (often seen as 0x8024001e / 0x8007001f)
caused by a corrupted Windows user profile where multiple SIDs map to a single profile folder.
What SetupDiag Reported
- Rule: DuplicateUserProfileFailure
- ErrorCode:
0x000004E5 - Cause: Multiple SIDs associated with one profile path (e.g.,
C:\Users\ws3.tavx) - Fix: Back up that profile’s data, then remove and recreate the affected user profile mapping.
Prerequisites & Safety
- You must be logged in as an administrator account that is not the corrupted profile (example:
admin.tav). - Do not delete the profile folder manually in Explorer only—remove the profile via Windows so the registry mapping is cleaned up.
- Confirm the corrupted user isn’t currently signed in before deletion.
Step 1 — Confirm the Corrupted User is Not Logged In
Open PowerShell (Admin) and run:
query user
If you see ws3.tavx (or the affected user) listed as logged on, sign them out before proceeding.
Step 2 — Back Up the User Profile Data
Copy data from the affected profile folder (example: C:\Users\ws3.tavx) to a safe location
(preferably another drive or external storage).
Must-back-up folders
DesktopDocumentsDownloadsPicturesFavoritesAppData\Roaming(optional, for application settings)
Recommended: Robocopy (preserves timestamps and handles retries)
Replace D:\Backup\ws3.tavx with your desired backup target:
robocopy "C:\Users\ws3.tavx" "D:\Backup\ws3.tavx" /E /COPY:DAT /R:1 /W:1 /XJ
Note: /XJ avoids reparse point loops (junctions), which is safer when copying profiles.
Step 3 — Remove the Corrupted Profile (Correct Method)
Use Windows profile management so the SID-to-profile mapping is removed cleanly.
- Press Win + R and run:
sysdm.cpl - Open the Advanced tab
- Under User Profiles, click Settings
- Select the affected profile (e.g.,
ws3.tavx) - Click Delete
Warning
Do not delete C:\Users\ws3.tavx manually in File Explorer as your only step.
That often leaves the broken SID mapping behind and the upgrade will fail again.
Step 4 — Reboot
Reboot the computer after deleting the profile to ensure Windows releases any handles and clears cached profile state.
Step 5 — Run the Windows 11 Upgrade (ISO Method Preferred)
Use a Windows 11 ISO for a more reliable in-place upgrade than Windows Update.
- Download the Windows 11 ISO from Microsoft
- Right-click the ISO → Mount
- Run
setup.exe - When prompted for updates during setup, choose Not right now (reduces failure points)
- Select Keep personal files and apps
- Proceed with the upgrade
Step 6 — Restore Data (After Upgrade)
After the system successfully upgrades to Windows 11:
- Recreate the user account as needed (domain/Microsoft/local)
- Sign in once to generate the new profile folder
- Copy the backed-up data back into the appropriate folders (Desktop/Documents/etc.)
Troubleshooting
The profile does not show up in User Profiles list
This can happen if the profile mapping is partially broken. You can still remove the user via:
- Settings → Accounts → Other users → Remove the user
- Then reboot
If the upgrade still fails, re-run SetupDiag and confirm the DuplicateUserProfileFailure no longer appears.
Re-run SetupDiag for confirmation
Run the same command to generate fresh results:
.\SetupDiag.exe /Output:"C:\Temp\SetupDiagResults.log" /NoTel