Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows 10 / Fix: Windows Won’t Boot (Start) After Installing Updates

November 8, 2021 Windows 10Windows 11Windows Server 2019

Fix: Windows Won’t Boot (Start) After Installing Updates

To ensure the stability and security of your Windows device, you should regularly install security updates (manually using MSU/CAB files or automatically via Windows Update). Microsoft releases new Windows updates on the second Tuesday of each month. In some cases, new updates can cause different issues (due to poor testing, engineering errors, hardware incompatibility, etc.). In these cases, the installed update must be removed (Ways to uninstall updates in Windows). However, it happens that the Windows operating system stops booting (crashes into BSOD with CRITICAL_PROCESS_DIED, INACCESSIBLE_BOOT_DEVICE errors, or automatically reboots) and you cannot remove the problematic update.

Let’s look at how to properly uninstall updates in Windows 10 and 11 (Windows Server 2019/2016/2012) if the operating system doesn’t boot.

Contents:
  • How to Uninstall Updates Offline using Windows Recovery Environment (WinRE)?
  • How to Remove Updates If Windows Won’t Boot?

How to Uninstall Updates Offline using Windows Recovery Environment (WinRE)?

If Windows won’t boot, you can try using the Windows Recovery Environment (WinRE) to fix common errors and remove the latest installed updates.

The Windows Boot Manager will attempt to automatically boot the computer into the Windows Recover Environment if three previous attempts to boot Windows were unsuccessful. You can simply interrupt the boot using the Power button 3 times in a row.

On the WinRE screen, select Troubleshoot. Here are some solutions to common Windows boot problems:

  • Startup repair – try using this option first so that Windows will try to automatically fix common startup problems;
  • System Restore – allows you to roll back to one of the previous restore points;
  • System Image Recovery – allows you to restore your computer from a previously created Windows system image backup;
  • Uninstall Updates – this mode allows you to remove the latest security updates or Windows 10 build upgrades.

windows re - advanced recovery options

Select Uninstall Updates. Choose one of the modes:

  • Uninstall latest quality updates – used to remove the latest monthly Windows update;
  • Uninstall latest feature update – used to uninstall Windows 10 build.

uninstall latest quality updates in windows recovery environment

Select the option you need, wait for the update to be uninstalled, restart your computer in normal mode.

uninstalling latest windows security updates in offline mode using winre

In some cases, when uninstalling updates via WinRE, you may see an error:

You have pending update actions and we won't be able to uninstall the latest quality/feature update of Windows. Try running Startup Repair instead.

In this case, you must manually delete the pending.xml file (described in the next section).

Tip. If the computer doesn’t boot after updating the Windows 10 build with the error “The computer restarted unexpectedly. Windows installation cannot proceed”, you need to use the OS recovery method from the link.  

How to Remove Updates If Windows Won’t Boot?

If Windows doesn’t boot in recovery (or Safe) mode after installing updates, you need to boot your computer from any available bootable disk or USB flash drive. This can be Windows Recovery Environment (WinRE), Windows installation disk (CD/DVD/USB), ERD (aka MSDaRT 10), or any other bootable media.

In this example, I will boot my computer from a Windows 10 x64 installation USB flash drive. When booting, go to your computer’s BIOS/UEFI and change the boot order by selecting your USB stick as the primary boot device.

Tip. Any installation disk will suit to boot a computer (the main condition is compliance with the bitness of the OS). Thus, Windows 10 install media can be used to recover Windows 7, but it won’t be possible to do it vice versa, since not all DISM commands and parameters are supported in earlier OS versions.  

On the second screen with the prompt to start installing Windows, click Repair Computer or press Shift+F10.

Repair your computer

In the first case, select Troubleshoot -> Command Prompt.

run command prompt in the recovery environment

In the WinPE command prompt window that appears, you need to determine the drive letter assigned to your Windows system partition (It can be any drive other than C:\).

Run the command: DISKPART

Display the list of partitions on local disks: list volume

diskpart: get drive letters in winpe

In my example, WinPE didn’t assign a drive letter to my Windows partition. In my screenshot, this is 39 GB Volume 1 with NTFS file system (100 MB partition is the EFI boot partition).

To assign it a drive letter D, use the commands:

select volume 1
assign letter=D

assign drive letter with diskpart in winpe

Run the list vol command again to verify that the Windows partition is assigned a drive letter.

End the diskpart session with the command: exit

In our example, you can see that the drive letter D:\ is assigned to the Windows system partition (use your drive letter in the following commands).

Display a list of update packages installed in the offline Windows image using DISM:

DISM /Image:D:\ /Get-Packages /format:table

DISM /Image:D: Get-Packages - list installed updates

If you know exactly, which specific update (KB) caused the problem, its number can be used as a filter:

DISM /Image:D:\ /Get-Packages /format:table | find “4052978”

Or you can filter the list by the update installation date:

DISM /Image:D:\ /Get-Packages /format:table | find “10/26/2021”

(the date format depends on the Windows localization settings, in my example, the US date format is used)

dism: get latest installed updates in offline windows image

Note. If the list of updates is too long, and you don’t know exactly, which of the latest updates caused the BSOD, you can export the full list of updates to a text file and open it with Notepad (you can use the search function in it).
DISM /Image:D:\ /Get-Packages /format:table > d:\updates.txt
Notepad d:\updates.txt

Now you need to copy the identifier of the problem update package to the clipboard (select the name of the package in the command prompt using the mouse and press Enter; to paste the text, just right click where you need).

copy update package name from dism

You can remove the update using the following DISM command:

DISM /Image:D:\ /Remove-Package /PackageName:Package_for_KB4052978~31bf3856ad364e35~amd64~~6.3.1.0

DISM Remove-Package if windows wont boot after update

If you don’t know exactly, which update has caused the problem, remove all recently-installed packages one by one. After removing each update, restart your computer and check if Windows boots normally.

If you need to remove pending updates (with a Pending status), you need to delete the pending.xml file. To do this, run the following commands:

del D:\Windows\WinSxS\pending.xml
del D:\Windows\WinSxS\cleanup.xml (file may be missing )
del D:\Windows\SoftwareDistribution\Download\*.*

You can also use DISM to remove incorrect updates with a Pending status:

dism /image:D:\ /ScratchDir:D: /cleanup-image /RevertPendingActions

This operation will undo any pending actions from previous maintenance operations, as these actions may cause the Windows to fail to boot.

You can then use DISM to check and fix the Windows Component Store in the offline mode (you need a Windows installation image):

Dism /image:D:\ /Cleanup-Image /RestoreHealth /Source:F:\sources\install.wim

If you have an MSDaRT recovery image, it’s even easier to remove problematic updates You just have to boot from the MSDaRT disk (the OS bitness must match), Diagnostics -> Microsoft Diagnostics and Recovery Toolset. In the list of tools, select Hotfix Uninstall.

Hotfix Uninstall wizard from msdart

Just select the updates you want to remove and click Next.

If you receive an error “An operating system wasn’t found” when booting your computer, check the state of your Windows bootloader.

2 comments
6
Facebook Twitter Google + Pinterest
previous post
Using Out-GridView to View and Select Table Data in PowerShell
next post
How to Rename an Active Directory Domain Name?

Related Reading

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

How to Use Ansible to Manage Windows Machines

September 25, 2023

Installing Language Pack in Windows 10/11 with PowerShell

September 15, 2023

How to View and Change BIOS (UEFI) Settings...

September 13, 2023

2 comments

Kongpun August 16, 2019 - 4:22 am

Thank you very much.
This post save my life several time.

Reply
Krishnan May 16, 2020 - 1:45 pm

Even me too and one of best site for IT people

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Repair EFI/GPT Bootloader on Windows 10 or 11
  • How to Restore Deleted EFI System Partition in Windows
  • Network Computers are not Showing Up in Windows 10/11
  • Updating List of Trusted Root Certificates in Windows
  • How to Create a Wi-Fi Hotspot on your Windows PC
  • How to Sign an Unsigned Device Driver in Windows
  • How to Download APPX File from Microsoft Store for Offline Installation?
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top