Windows Update · Windows 11
Fix a PC stuck on 'Undoing changes made to your computer'
A PC stuck on 'Undoing changes made to your computer' has already given up on an update and is rolling it back — the rollback itself is now stalled. Give the rollback real time first, then use recovery to remove the update cleanly instead of letting the loop repeat.
What you need
- Time, and the charger plugged in on a laptop. A rollback moves as many files as the update did; interrupting it on a fading battery risks the install it is trying to save.
- A second device to read the recovery steps on. The useful menus are on the stuck PC's recovery screens, not its desktop.
- A note of any error code shown before the undoing began. If an earlier screen showed one, it names the update that failed.
Read the problem before you touch it
- Know how this differs from a stuck install. The update has already failed. Windows is removing it and restoring the earlier state, which is the safe direction — the goal is to let that finish or help it finish, not to push the update through. This is also different from rolling back a whole feature update after it installed; nothing here has finished installing.
- Decide whether it is still working. Watch the drive activity light and listen for disk and fan activity over ten minutes. Regular activity and a spinning indicator mean the rollback is progressing even though the words never change.
- Set your limit in advance. Give a rollback two hours on an SSD and up to four on an older hard drive, measured from when the message first appeared. Past that, with no drive activity for the last half hour, treat it as stalled and use the fixes.
The simple fixes, in order
- Wait the full limit once. Leave the PC plugged in and untouched for the limit above. Rollbacks restart the PC themselves when they complete, and many that look stuck are simply slow on a nearly full or older drive.
- Restart once if the limit passes. Hold the power button until the PC turns off, wait thirty seconds, and turn it on. Windows often resumes and completes the rollback at the next start, or reaches the desktop with the update marked failed. Microsoft lists this behavior among the standard Troubleshoot problems updating Windows steps.
- Free the rollback from extra hardware. Unplug external drives, USB sticks, and SD cards, then restart again. Rollback inventories connected storage, and an extra drive can hold it up.
- Read the result in Settings if the desktop appears. Go to Settings > Windows Update > Update history. The failed update and its error code are listed there; write the code down before trying anything else, because a repeated failure is fixed from the code, not by retrying blindly.
The advanced route
- Uninstall the update from recovery. If the loop returns, force the recovery environment by holding the power button during startup twice in a row, then choose Troubleshoot > Advanced options > Uninstall Updates and remove the latest quality update. Microsoft covers this route in Recovery options in Windows. Removing the update directly finishes what the stalled rollback was trying to do.
- Use Startup Repair if uninstall is not offered or fails. In the same Advanced options menu, choose Startup Repair and let it run. Afterward, use System Restore from the same menu if a restore point from before the update exists — it returns system files to that point without touching personal files.
- Repair system files, then update once more. Once Windows loads, open Windows Terminal as administrator, run
DISM /Online /Cleanup-Image /RestoreHealth, then runsfc /scannow. Microsoft documents both tools in Using System File Checker in Windows. Restart, check Update history for the code you noted, and only then try the update again.
End state
- The PC reaches the desktop and stays there across two restarts.
- Update history shows the failed update with a clear status or code, and no rollback screen returns.
- Windows Update can check for updates and report a result, installed or failed, instead of looping.
When it goes wrong
- The undoing screen comes back after Uninstall Updates. The rollback and the uninstall are fighting over the same update. Use System Restore from recovery to step the whole system back past it.
- Startup Repair says it could not repair the PC. Do not repeat it. Go back to Advanced options and use System Restore, or back up the drive from another PC before considering a reset that keeps files.
- The same update fails and rolls back a second time after repair. Stop retrying it. Note its KB number from Update history and leave it uninstalled until a revised version is offered; a twice-failed update is the update's problem, not your PC's.
- Drive activity never stops but the message never changes after a full day. The rollback is looping on one component. Recovery's Uninstall Updates is the way out — waiting longer will not change the result.
Related fixes
-
Fix a PC stuck on 'Getting Windows ready' for hours
A screen that says 'Getting Windows ready' for a short while is normal after an update. The same screen for many hours, with no progress and no disk activity, usually means the update has stalled. Wait the right amount of time first, then use the recovery route instead of guessing.
-
Fix a PC stuck on the 'Please wait' screen before sign-in
A PC stuck on 'Please wait' is waiting on a service or a piece of update cleanup that is not finishing. Give it one bounded wait first, then use Safe Mode through the recovery environment to stop the stuck piece and let sign-in complete.
-
Fix a PC stuck in a boot loop
A PC that restarts at the same point every cycle is usually caught by a bad update, a failing drive, or broken boot settings, not a full reset. Separate the three causes in the recovery environment first, then repair the one you find.
-
Fix a PC stuck in the 'Preparing automatic repair' loop
'Preparing automatic repair' followed by a restart, over and over, means Windows cannot finish starting and its own repair is not clearing the cause. Work inside the recovery environment in order: Startup Repair once, then the last update, then a restore point.
Sources
- Microsoft Support, Troubleshoot problems updating Windows — the Windows Update troubleshooter and the standard checks for updates that fail to install.
- Microsoft Support, Recovery options in Windows — the recovery options, including Startup Repair, System Restore, and advanced startup.
- Microsoft Support, Using System File Checker in Windows — running SFC and DISM to repair missing or corrupted system files.