Share via


How to uninstall a windows update KB# using Windows RE: Administrator: X:\Windows\System32.cmd.exe

Question

Tuesday, February 20, 2018 11:30 PM

If a computer cannot open the windows advanced troublehshooting menu and the only available option is using a bootable windows 10 iso which commands can be used to uninstall a Windows update?

For example:

Boot into Windows 10 ISO advanced troubleshooting menu > command prompt > Administrator: X:\Windows\System32\cmd.exe > X:\Sources:>

What syntax or command structure can be used?

For example to uninstall:  KB4074588

Is there more information than the KB number to enter into the command?

If so, what command is used to get this needed information.

Again the computer cannot boot to the windows advanced troubleshooting menu and can only boot with a windows 10 iso.

These are commands that had failed to fix the problem:

dism /image:c:\ /cleanup-image /revertpendingactions

sfc /scannow /offbootdir=c:\ /offwindir=c:\windows

chkdsk /f C:

These are commands/methods that have not yet been tried but the preference now is to uninstall the known problematic Windows update:

bootrec /fixmbr

bootrec /fixboot

bootrec /scanos

bootrec /rebuildbcd

Registry backup repair.

Please indicate if there are no commands available using Windows PE or RE.

If there are commands that can be used please post reference links along with the commands to uninstall KB4074588

All replies (1)

Wednesday, February 21, 2018 3:04 AM

Hi,

If you can’t boot up and get into Win RE with a media installation, try to get into Safe Mode to uninstall the update.

If you want to remove the update via CMD in Win RE, DISM can remove packages from the image or from the installation(offline or online)

From the System Recovery Command Prompt run the following command:

dism /online /get-packages

This will produce a list of installed updates and packages. They will look like this:

Package Identity: Package_for_KB978262~31bf3856ad364e35~x86~~6.1.1.0

State: Installed

Release Type: Security Update

Install Time: 2/11/2010 1:01 PM

Find the most recent one and then make a note of the package identity.

Then run the following command:

dism /online /remove-package /PackageName:Package_for_KB978262~31bf3856ad364e35~x86~~6.1.1.0

Note: Name of update is from previous step which may vary.

Hope it will be helpful to you

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].