Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uninstalling Windows Updates via CMD Batch File

I am trying to put together a batch script that will quietly remove a specific windows update. I have the KB #.

I cant seem to find a seamless way to do this so far. Is there a way to uninstall via a GUID of sorts? If so, how do you find the GUIDs of each specific installed windows update?

like image 572
n9x Avatar asked Mar 20 '26 13:03

n9x


1 Answers

According to MSDN, in order to uninstall update #980302, you should use the command:

wusa /uninstall /kb:980302

As the documentation and wusa /? doesen't reveal anything about specifying more /kbs, your batch file should consist of several above lines (one per kb#).

Don't forget to run your batch file as Administrator!

like image 87
CristiFati Avatar answered Mar 22 '26 06:03

CristiFati



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!