Task sequence and OSD

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.

Hex code0xC1900107
Decimal-1047527161
Logs to readsetupact.log, setuperr.log, smsts.log, WUAHandler.log, UpdatesDeployment.log

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

  1. 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.

  2. 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.~BT folder safely. Restart again.

  3. 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.

  4. Fix the first failure

    This code is a follow-up error. The first attempt failed for another reason. Read setuperr.log and setupact.log in C:\$WINDOWS.~BT\Sources\Panther before you delete that folder, or run SetupDiag. Solve that error or the next attempt fails the same way.

Commands that help

Check for pending restart flags and old Setup folders · PowerShell
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'
Got a different code?

Turn any hex or decimal error code into its meaning, or search every code on this site.

Error code lookup All SCCM error codes

✉

Get new articles in your inbox

SCCM guides, AI tools, automation tips — sent when published. No spam.