A failed Windows update can leave pending servicing actions that prevent startup. Reverting those actions is a recovery procedure for an offline Windows installation, rather than a routine way to pause or cancel updates on a running system.
Identify the recovery scenario
Record the update error and preserve a recovery backup. If Windows still starts, use the supported Windows Update troubleshooter or uninstall an identified problematic installed update where permitted. Pausing updates delays future activity; it does not undo installed or pending servicing changes.
If Windows cannot start after servicing, obtain console access and the appropriate Windows recovery media. Have any BitLocker recovery key available before attempting to access an encrypted installation.
Locate the offline Windows installation
Open Command Prompt from the recovery environment and identify the installed system’s drive. Drive letters may differ from normal startup.
For example, check a candidate drive without modifying it:
dir D:\WindowsConfirm that this is the intended installed Windows system. Do not target the recovery environment’s own drive or assume D: is correct.
Revert pending servicing actions
Only for the confirmed offline installation that failed to boot, an administrator can run:
DISM /Image:D:\ /Cleanup-Image /RevertPendingActionsReplace the drive with the verified installation location. Review the result before restarting through the recovery interface.
This operation reverts pending servicing actions for the image. It is not supported with /Online, against a running system, or against the Windows recovery image itself.
Verify and investigate
Check whether Windows starts, then review servicing and update errors before retrying the update. Keep security maintenance planned after recovery. Do not delete pending.xml or clear update directories indiscriminately as a substitute for diagnosing the failure.