About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
A Windows 10 device starts its feature update to Windows 11, works for a while, restarts, and then rolls back to Windows 10 with the code 0x800F0818 - 0x20003. Microsoft documents this for one specific situation and one specific leftover on the device: an old SetupConfig.ini file that points at language packs and scripts from an earlier Windows 10 update.
Everything before the Fix section only reads information. The fix deletes one file and one registry entry, and the steps below keep a copy of both first.
What the error means
Microsoft's page describes the scenario. A fleet is serviced with System Center Configuration Manager (SCCM), Windows Server Update Services (WSUS) or Windows Update for Business, and "A feature update from Windows 10 22H2 to Windows 11 23H2 or 24H2 fails in the Safe_OS phase, and generates error 0x800F0818 - 0x20003. After the failure occurs, the update rolls back."
The two halves of the code come from different places in Windows Setup. The page shows the log line where Setup reports them as separate values: SetupResult: [0x800f0818] and Extended: [0x20003]. The Microsoft page on Windows upgrade log files says the setup phase can be determined from the extend code, which is why the second half is worth recording with the first.
The page also says that a diagnostic tool such as SetupDiag returns the same error code. The setup log excerpt on the page ends in CBS_E_IDENTITY_MISMATCH, attached to a line that reads "Package doesn't match FOD for the current OS", so the log is complaining about a language feature package that does not match the build being installed. In the page's own excerpt, a Hungarian language features package built for build 10.0.19041.1 sits where the Windows 11 build 10.0.22621.1 package is expected.
Likely causes
Microsoft states the cause in one sentence: "The upgrade failed because of a legacy SetupConfig.ini file that contains hard-coded paths to outdated language packs and scripts." It adds that those language packs and scripts are not compatible with Windows 11, and that "These outdated references cause identity mismatches during the upgrade process."
The page lists two histories that put a device at risk:
- The device previously received a Windows 10 feature update that used a custom
SetupConfig.inifile. - Earlier updates or upgrades to the device used language packs or post-upgrade scripts that were manually configured or deployed.
The page gives the path of the legacy file as C:\Users\Default\AppData\Local\Microsoft\Windows\WSUS\SetupConfig.ini and shows its contents as a [SetupConfig] section with four lines: InstallLangPacks= and PostOOBE= and PostRollback= each pointing into C:\ProgramData\Temp\Inplaceupgrade\W10_22H2\, and DynamicUpdate=Disable.
| Finding | What it points to |
|---|---|
0x800f0818 and 0x20003 in setupact_rollback.log |
This error, in the Safe_OS phase |
CBS_E_IDENTITY_MISMATCH and a language package for the old build in setupact.log |
The mismatch the page describes |
SetupConfig.ini present in the WSUS folder of the Default profile |
The legacy file named as the cause |
An UnattendFile entry under HKLM\SYSTEM\Setup |
The registry entry the page tells you to delete |
Different code, or no SetupConfig.ini |
Not this page's cause |
Microsoft's page gives no figure for how many devices carry the file and does not say which tool created it on a given fleet.
Prove the cause before changing anything
All of these steps read only, except the optional SetupDiag run, which is flagged where it appears.
- Find the setup logs. The Windows upgrade log files page lists
setupact.logfor the down-level phase in$Windows.~BT\Sources\Pantherandsetupact.logfor rollback in$Windows.~BT\Sources\Rollback. If a folder is not shown in File Explorer, select View, then Show, then Hidden items, as Microsoft's page does for theAppDatafolder. - In
C:\$Windows.~BT\Sources\Rollback\setupact_rollback.log, look for the lines Microsoft quotes:ImageExit: Initializing SetupResult: [0x800f0818]andImageExit: Initializing Extended: [0x20003]. Both present means the device matches the symptom. - In
C:\$Windows.~BT\Sources\Panther\setupact.log, look for a line containingPackage doesn't match FOD for the current OSand ending[HRESULT = 0x800f0818 - CBS_E_IDENTITY_MISMATCH], and for aCmdLineline that carries/InstallLangPacksand/PostOOBEwith paths underC:\ProgramData\Temp\Inplaceupgrade\W10_22H2. Those paths match the legacy file's contents. - In File Explorer, go to
C:\Users\Default\AppData\Local\Microsoft\Windows\WSUS\and check whetherSetupConfig.iniis there. If theAppDatafolder is not shown, the page says to select View, then Show, then Hidden items. - Read the registry entry without changing it. In a command prompt run:
reg query HKLM\SYSTEM\Setup /v UnattendFile
The reg query page describes the /v parameter as the registry value name that is to be queried. If the entry exists, note its data; the undo step below restores it.
Optional: SetupDiag
Risk: the next command, if you choose to run SetupDiag by hand, writes files. The SetupDiag page says that when it finishes, two files are created in the folder where it was run: a configuration file and a log file named SetupDiagResults.log. The page gives the /ZipLogs parameter a default of true, so the tool also creates a zip file of the logs it parsed unless you pass /ZipLogs:False. Run it from an elevated command prompt in a folder you can clear afterwards.
Microsoft says Windows Setup runs SetupDiag automatically when an upgrade has a problem, and that the analysis is at %WinDir%\Logs\SetupDiag\SetupDiagResults.xml and in the registry under HKLM\SYSTEM\Setup\SetupDiag\Results. Reading that existing result with reg query changes nothing. Running setupdiag.exe by hand is different.
setupdiag.exe /ZipLogs:False
To undo it: delete the files SetupDiag created in that folder. They are its own output and nothing else depends on them.
Microsoft's SetupDiag page says: "When SetupDiag indicates that there were multiple failures, the last failure in the log file is typically the fatal error, not the first one." Read to the end of the log before deciding.
Example (illustrative): at a clinic network in Parramatta, 40 laptops rolled back during the Windows 11 feature update. On LT-ADM-07, setupact_rollback.log shows [0x800f0818] and [0x20003], setupact.log shows the identity mismatch for a language package built for the earlier build, and the WSUS folder in the Default profile holds a SetupConfig.ini with the four lines above. That device matches the page. A laptop with the same code but no such file does not.
Fix
Risk: the steps below delete a configuration file from the Default user profile and delete the UnattendFile entry in the registry on this device. Microsoft's page does not say what any given device's UnattendFile entry points to or whether another deployment tool uses it, so read it first with the reg query command above and keep the copies saved in the next block. Do this on one affected device first, not across the fleet.
The page's resolution is two deletions: the SetupConfig.ini file, and the UnattendFile entry under HKEY_LOCAL_MACHINE\SYSTEM\Setup. Microsoft prefaces the registry part with an Important note that serious problems might occur if the registry is modified incorrectly, and says to back up the registry first.
First save what you are about to remove. Create a folder for the copies, then copy the file and export the registry key from an elevated command prompt:
copy C:\Users\Default\AppData\Local\Microsoft\Windows\WSUS\SetupConfig.ini <BackupFolder>\SetupConfig.ini
reg export HKLM\SYSTEM\Setup <BackupFolder>\HKLM-SYSTEM-Setup.reg
The copy page gives the form copy <source> <destination>. The reg export page says the destination file must have a .reg extension and that the export copies the subkeys, entries and values of the key into a file.
Then make the change:
- In File Explorer, go to
C:\Users\Default\AppData\Local\Microsoft\Windows\WSUS\, with hidden items shown, and deleteSetupConfig.ini. - Open Registry Editor, go to the
HKEY_LOCAL_MACHINE\SYSTEM\Setupsubkey, and delete theUnattendFileregistry entry.
To undo it: copy the saved file back to the WSUS folder with copy <BackupFolder>\SetupConfig.ini C:\Users\Default\AppData\Local\Microsoft\Windows\WSUS\SetupConfig.ini, and restore the entry with reg import <BackupFolder>\HKLM-SYSTEM-Setup.reg. The reg import page says the file must have been created in advance by using reg export, which is why the export comes first. The import writes back every value saved in the export of that key, so any value under HKLM\SYSTEM\Setup that changed after the export returns to its saved data. If the UnattendFile entry did not exist, there is nothing to restore for it, and the import is not needed.
After both deletions, retry the feature update through the same channel (SCCM, WSUS or Windows Update for Business). Microsoft's page does not give a restart or wait step.
Confirm the fix
- The feature update completes and the device stays on Windows 11 instead of rolling back to Windows 10.
- No new
setupact_rollback.logrecords[0x800f0818]and[0x20003]. reg query HKLM\SYSTEM\Setup /v UnattendFileno longer returns the entry, and the WSUS folder in the Default profile no longer holdsSetupConfig.ini.- If the update fails again, read the new
setupact.logto the end. Microsoft's page covers this one cause only; a different code or a different identity mismatch points elsewhere.
What to watch afterwards
- Other devices with the same history: a Windows 10 feature update that used a custom
SetupConfig.ini, or earlier upgrades that used manually deployed language packs or post-upgrade scripts. Check the WSUS folder in the Default profile on a sample before the next wave. - Whether the file comes back. The page does not say what writes it. If it reappears after deletion, our own advice is to find the deployment task or script on your side that still pushes it, because deleting the file again on each device fixes one device at a time.
- Rollbacks that name a different phase or code. A rollback with 0xC1900101 is a different failure; the Windows upgrade log files page lists the rollback log as the place to investigate it.
- New builds. The page names Windows 11 23H2 and 24H2 as the targets and Windows 10 22H2 as the source.
Read next
Related articles you may want next.
- TroubleshootingWindows upgrade fails with 0xC1900101-0x20017: rolls back during SAFE_OS or BOOT, or finishes and never restartsUpgrade error 0xC1900101-0x20017 rolls back in SAFE_OS or BOOT. Microsoft names drivers (PVSCSI) and CrowdStrike. Read-only checks first, then safe steps.Read article
- TroubleshootingWindows Server update fails with 0x800F0922 (CBS_E_INSTALLERS_FAILED): the corrupted SecureBootEncodeUEFI taskWindows Server update fails with 0x800F0922 (CBS_E_INSTALLERS_FAILED). Confirm the corrupted SecureBootEncodeUEFI task in the logs, back up, then fix.Read article
- TroubleshootingWindows Update error 0x80070422: the Windows Update service is disabled or not runningWindows Update error 0x80070422 means the Windows Update service stopped or is disabled. Read its start type, then fix it with a way back.Read article
Risks and limits
These steps have not been run or lab-tested.
The page covers upgrades from Windows 10 22H2 to Windows 11 23H2 or 24H2 and does not state a position for other source or target versions. It shows the path of the file but does not say how the file was created on each device. It does not say what the UnattendFile entry contains or what else may read it, so the export taken before deletion is the only way back for that entry. Microsoft's page asks for the deletion of the file on affected devices and gives no further warning for the file itself. SetupDiag is a diagnostic tool that Microsoft recommends running at its latest version when run manually, and a manual run writes files as described above.
Sources
- "0x800F0818 - 0x20003" error during upgrade from Windows 10 to Windows 11 — Microsoft Learn, page dated 2026-02-12, accessed 2 December 2026
- SetupDiag — Microsoft Learn, page dated 2026-03-23, accessed 2 December 2026
- Windows upgrade log files — Microsoft Learn, page dated 2025-04-08, accessed 2 December 2026
- reg export — Microsoft Learn, page dated 2023-02-03, accessed 2 December 2026
- reg import — Microsoft Learn, page dated 2023-02-03, accessed 2 December 2026
- reg query — Microsoft Learn, page dated 2023-02-03, accessed 2 December 2026
- copy — Microsoft Learn, page dated 2023-02-03, accessed 2 December 2026
This article was originally published on .