Reboot the computer and select the boot once option (usually F12 on Dell systems) and get to the Safe Mode with Command Prompt option. If you can’t get there, just use a Windows install disc and during the setup choose the option to repair a current installation. We had to do this for a couple W10 machines after a recent update.
After the Command Prompt launches, run the following to load the software registry hive:
reg load hklm\temp <drive letter for windows directory>\windows\system32\config\software Example: reg load hklm\temp c:\windows\system32\config\software
Run the following command to delete the SessionsPending registry key. If the registry value does not exist, proceed to the next step.
reg delete "HKLM\temp\Microsoft\Windows\CurrentVersion\Component Based Servicing\SessionsPending" /v Exclusive
Run the following to unload the registry:
reg unload HKLM\temp
Run the following command, which will list all pending updates:
dism.exe /image:<drive letter for windows directory> /Get-Packages Example: dism.exe /image:c:\ /Get-Packages
Run the following command for each packages where “State = Install Pending”:
1 2 3
dism.exe /image:<drive letter for windows directory> /remove-package /packagename:<package name> Example: dism.exe /image:c:\ /remove-package /packagename:Package_for_RollupFix_Wrapper~31bf3856ad365e35~amd64~~15063.674.1.8 dism.exe /image:c:\ /remove-package /packagename:Package_for_RollupFix~31bf3856ad365e35~amd64~~15063.674.1.8
Spotted a mistake in this article? Why not suggest an edit!