Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows Update - Uninstall from Console Level

Windows Update - Uninstall from Console Level

How to Uninstall Windows Update from Console Level
Published by Flavius
05 Sep 2010
Published by

How to Uninstall Windows Update from Console Level

information   Information

This article will show you how to uninstall hotfixes or service packs if unable to do that through "Programs and Features".This article applies to Vista/Windows Server 2008/Windows 7/Windows Server 2008 R2 (all versions).Methods can be divided into two groups -by using wusa and pkgmgr commands

Note   Note

These methods work properly only in normal mode


USING WUSA COMMAND (work only in Windows 7/Windows Server 2008 R2)

//all methods work both normal updates and service packs//

METHOD I

Run cmd.exe with elevated previlliges (right click on cmd.exe and choose "run as administrator") and type:

wusa /uninstall /kb:{update ID}

e.g

To uninstall update KB980302 the command will be following

wusa /uninstall /kb:980302

and then appear uninstaller...

Windows Update - Uninstall from Console Level-wusa1.png


METHOD II

1.Download problematic update from Microsoft Download Center and place it to any folder i.e C:\Temp

2.Run cmd.exe with elevated previlliges (right click on cmd.exe and choose "run as administrator") and type:

wusa /uninstall {full hotfix name}

e.g

To uninstall update KB980302 32bit and in C:\Temp folder you have standalone version the command will be following

wusa /uninstall C:\Temp\Windows6.1-KB980302-x86.msu

and then appear uninstaller...


USING PKGMGR COMMAND


UNINSTALLING UPDATE

1.Download problematic update from Microsoft Download Center and place it to any folder i.e C:\Temp

2.Run cmd.exe with elevated previlliges (right click on cmd.exe and choose "run as administrator")
3.Unpack update by using command prompt

the proper commands are following:

expand -f:*{update name}.msu {destination folder}

i.e

To unpack update Windows6.1-KB980302-x86.msu which is stored in C:\Temp folder and you want to unpack it to C:\Temp2 folder the command will be following

expand -f:* C:\TEMP\Windows6.1-KB980302-x86.msu C:\TEMP2

press ENTER

4.Choose any unused empty folder or create new folder i.e C:\Sandbox for temporary installation files.
5.Now you can uninstall update,the proper command have following form:

start /w pkgmgr /m:{full hotfix name}.cab /up /s:{sandobox folder}

where {sandbox folder} -any unused folder

For our example,the proper command will be following:

start /w pkgmgr /m:C:\Temp2\Windows6.1-KB980302-x86.cab /up /s:C:\Sandbox

press ENTER

Dependce from what kind of update it is -sometimes after a while appear popup to prompt reboot to apply changes (image)

Windows Update - Uninstall from Console Level-restart.png

or if any update doesn't require reboot to apply changes no messages are returned.Don't close command prompt until it finish (images below)

Name:  norestart1.png
Views: 17330
Size:  13.8 KB
Deinstallation in progress.Sometimes it may take many minutes...

Name:  norestart2.png
Views: 17277
Size:  13.9 KB
Deinstallation complete succesfully.



UNINSTALLING SERVICE PACK

1.Download service pack from Microsoft Download Center and place it to any folder i.e C:\Temp

2.Run cmd.exe with elevated previlliges (right click on cmd.exe and choose "run as administrator")
3.Unpack update by using command prompt

the proper commands are following:

{service pack name} /x:{destination folder}

i.e

for Vista SP1 32bit which is stored in C:\Temp folder and you want to unpack it to C:\Temp2 folder the command will be following

C:\Temp\Windows6.0-KB936330-X86.exe /x:C:\Temp2

4.Choose any unused empty folder or create new folder i.e C:\Sandbox for temporary installation files
5.Now you can uninstall service pack,the proper command have the same form as for updates:

start /w pkgmgr /m:{full service pack name}.cab /up /s:{sandobox folder}

where {sandbox folder} -any unused folder

here for Vista SP1 32bit,the proper command will be following:

start /w pkgmgr /m:C:\Temp2\Windows6.0-KB936330-X86.cab /up /s:C:\Sandbox

press ENTER

After a while appear popup to request reboot to apply changes.



05 Sep 2010   #1
Lomai

Win7 HP (x64)/Win7 Ultimate (x64)
 
 

Thank you Flavius

My System SpecsSystem Spec
16 Sep 2013   #2
artinusa

Windows 7 64 bit
 
 

Great tutorial well done..
My System SpecsSystem Spec
20 Nov 2013   #3
DaljitPhull

windows 7 64 bit
 
 

The is great... Any idea how to do this on 100 PC remotely?
My System SpecsSystem Spec
.


Comment

 Windows Update - Uninstall from Console Level




Tutorial Tools



Similar help and support threads for2: Windows Update - Uninstall from Console Level
Windows 7 Tutorial Category
Unable to uninstall windows update KB2670838, error 0x80073701 Windows Updates & Activation
WUSA.exe on Windows 7 to uninstall MS update Windows Updates & Activation
Need to uninstall latest Windows update without logging in. Windows Updates & Activation
Windows Update - Uninstall an Update Tutorials
Can't update Windows Live Mail or uninstall it Browsers & Mail
Low system sound level, high music level? Sound & Audio
Windows 7 SP1 Install and Uninstall Update Available News

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 02:34 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33