How to uninstall Windows updates using a CMD batch file

I am trying to put together a script package that will safely uninstall a specific Windows update. I have KB #.

I can't seem to find a way to do this so far. Is there a way to uninstall using a GUID? If so, how do you find the GUID of each installed Windows update?

+3


source to share


2 answers


According to MSDN , to remove update # 980302 you have to use the command:

wusa /uninstall /kb:980302

      



Since the documentation wusa /?

doesn't show anything about specifying more than /kb

s, your batch file should be multiple lines above (one for kb #).

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

+3


source


wusa can be removed using KB number:



wusa /uninstall /kb 123456

      

0


source







All Articles