0xC1900107: A cleanup from an earlier upgrade attempt is still pending
Windows Setup will not start an upgrade because cleanup from an earlier attempt is not finished. The computer needs a restart first.
What 0xC1900107 means
An earlier Windows upgrade attempt left work to clean up. Windows Setup refuses to start a new upgrade until that cleanup ends. The cleanup needs a restart.
In SCCM you see the code on the Upgrade Operating System step in smsts.log, or in Software Center for a feature update. It often follows a failed or rolled back upgrade on the same computer.
Common causes
- A previous upgrade failed or rolled back and the computer has not restarted since.
- Leftover Setup folders from the old attempt are still on drive C.
- Another update is waiting for a restart.
- A retry started straight after a failure, with no restart between.
How to fix 0xC1900107
-
Restart the computer
Restart the computer once, then run the upgrade again. This clears most cases. In an upgrade task sequence, add a Restart Computer step near the start, before the Upgrade Operating System step.
-
Remove the old Setup files
If the code returns after a restart, clear the leftovers. Run Disk Cleanup as administrator, select "Clean up system files", and tick "Temporary Windows installation files". This removes the old
C:\$WINDOWS.~BTfolder safely. Restart again. -
Check for a pending restart before you deploy
In the console, open Assets and Compliance, Devices and add the Pending Restart column. Restart the clients that show one before the upgrade deployment reaches them. This avoids the error at scale.
-
Fix the first failure
This code is a follow-up error. The first attempt failed for another reason. Read
setuperr.logandsetupact.loginC:\$WINDOWS.~BT\Sources\Pantherbefore you delete that folder, or run SetupDiag. Solve that error or the next attempt fails the same way.
Commands that help
Test-Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending'
Test-Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired'
Test-Path 'C:\$WINDOWS.~BT'
Turn any hex or decimal error code into its meaning, or search every code on this site.