Why Windows 11 23H2 Installation Fails: Error 0x8007001f

An upgrade that runs to the end, restarts and lands you back on your old Windows with error 0x8007001f is usually tripping over leftover user accounts in the registry.

Setup tries to carry every user profile over to the new version, and an entry with no real account behind it breaks that step.

Deleting those stale entries under ProfileList and running the upgrade again from an ISO worked for one owner on two different PCs. Version 23H2 itself is retired now, so you'll get a newer version today, but the fix is the same.

Where the upgrade breaks

On Windows 10, the code shows up in Settings > Update & Security > Windows Update > View update history, and on Windows 11 in Settings > Windows Update > Update history.

The asker saw 0x8007001f there, 0xc00000f0 after trying the Installation Assistant, and the same failure from a USB stick built with the Media Creation Tool.

Microsoft's list of upgrade error codes ties 8007001F during the data migration step to user profiles: corrupt entries under ProfileList, or deleted accounts still listed in the registry.

The same table links 8007001F at a different stage to a device that isn't working, which is why unplugging accessories comes first.

In the asker's case, the PC had collected more than 50 extra profile entries, each pointing at a duplicate folder named after the account, the PC name and a number, in the style name.PCNAME.000.

Drawing of the ProfileList key in Registry Editor showing which entries to leave, which to keep and the stale duplicate entry to delete

1. Clear the simple blockers first

Unplug docks, external drives and anything else you don't need for the install, and uninstall third-party antivirus. The asker had already done both, so neither fixed this case, but unplugging rules out the device version of the error.

If BitLocker is on, open Control Panel > BitLocker Drive Encryption and choose Suspend protection before you start.

The asker's later attempts ran with BitLocker off, no internet and only essential startup programs, which keeps outside software out of the way.

2. List your real accounts

Search Start for cmd, open it with Run as administrator and type the asker's command:

wmic useraccount get name,sid

It prints every real account on the PC with its SID, the long code starting S-1-5-21 that Windows uses to tell accounts apart. Paste the output into Notepad so you can compare against it.

If Windows says wmic isn't recognized, open PowerShell as administrator and run this instead. It lists the same local accounts, including ones you sign in to with a Microsoft account:

Get-LocalUser | Select-Object Name, SID

If the PC belongs to work or school and signs in with an organization account, stop here and ask IT, because those accounts don't show up in either list.

3. Delete the stale entries under ProfileList

Press Windows+R, type regedit and go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. Right-click ProfileList and choose Export first, so one double-click can undo everything.

Click each key under ProfileList and look at its ProfileImagePath value, which shows that entry's folder. Leave the short S-1-5-18, S-1-5-19 and S-1-5-20 keys alone; they belong to Windows itself.

Of the long S-1-5-21 keys, keep every one whose SID is on your list from step 2. Any other is stale, usually pointing at a numbered duplicate folder or one that no longer exists: right-click it and choose Delete.

That's what fixed the asker's ThinkPad T490. When their wife's PC hit the same wall two months later, they skipped the downloaded registry file and did it by hand this way, with the same result.

If an earlier upgrade never finished, invalid profiles can also sit in C:\Windows.old\Users. Disk Cleanup removes that folder: click Clean up system files and tick Previous Windows installation(s).

The leftover folders in C:\Users can stay for now. The asker still had 33 of them when the upgrade went through, and you can tidy them up later once you've checked they hold nothing you need.

4. Run the upgrade again from an ISO

Get the ISO from the Windows 11 download page: scroll to the Disk Image (ISO) for x64 devices section, pick Windows 11 (multi-edition ISO for x64 devices), then your language.

On a PC with an Arm chip, such as a Snapdragon laptop, use the Arm64 ISO linked from that same section instead.

Screenshot of the Windows 11 download page section for the multi-edition ISO for x64 devices

Double-click the downloaded ISO to mount it and run setup.exe from it. Leave the Keep personal files and apps option selected, and stay offline until setup finishes, as in the attempt that worked.

The asker's ISO installed an earlier Windows 11 version, and Windows Update brought it fully up to date once the internet was back on. Today's ISO carries 26H2, so less is left to catch up on afterwards.

I'd make a fresh USB stick or ISO for this attempt rather than reuse an old one; an old 23H2 image would install a version whose Home and Pro editions stopped getting updates in November 2025.

If it still fails

The free SetupDiag tool reads the setup logs and, when it recognizes the failure, tells you which phase broke and why. That shows whether profiles were really the problem, so run it right after a failed attempt.

For the asker, volunteers on Microsoft's forum spotted the duplicate profiles in those same setup logs.

If SetupDiag points somewhere other than profiles, the general installation failure checks cover the other common causes. Already on Windows 11 and stuck on a newer version? The 25H2 update fixes apply there.

Still stuck after a clean ISO run? Take the error codes and the SetupDiag result to your PC's maker or to Microsoft support.

The Short Version

0x8007001f at the end of a Windows 11 upgrade points to stale user profile entries. List your real accounts with wmic or Get-LocalUser, export the ProfileList key, and delete any S-1-5-21 key whose SID isn't on that list.

Leave S-1-5-18 to S-1-5-20 alone, then run setup from a fresh ISO with accessories unplugged and the PC offline. Let Windows Update finish the job afterwards.

Checked November 19, 2026.

If you have any business, I can build it online

Hi, I’m Hamza. I’ve been building websites and online shops for business owners since 2019, and I also built this site you’re reading.

Tell me what business you have or what you’re working on. I’ll look into how much it can grow online, and then we talk. You don’t have to buy anything or hire me first.

Chat with me on my site and I’ll show you proof of businesses I’ve helped and how they’ve grown.

Written by Isaac Smith

Isaac Smith is the founder and editor of PC Glance, a website that covers computers, laptops, and technology. He is a tech enthusiast and a computer geek who loves to share his insights and help his readers make smart choices when buying tech gadgets or laptops. He is always curious and updated about the latest tech trends.

More from Isaac Smith

Leave a Comment