Uninstall Hotfix Command Line Automation

Remove from a list in an environment variable

SET list=2923545 3006121 3006625 3013531 3020370 3040272 3054476 3068708 3075249 3078667 3080079 3080149 3092627 3102429 3107998 3112148 3118401 3121255 3133977 3137061 3138612

for %%a in (%list%) do (cmd /c C:\Windows\System32\wusa.exe /uninstall /kb:%%a /quiet /norestart) 

Remove with a file list of hotfixes. One per line

SET filename=%1

for /F "tokens=*" %%a in (%filename%) do (cmd /c C:\Windows\System32\wusa.exe /uninstall /kb:%%a /quiet /norestart)

Keep in mind that you must use the system32 and not syswow64 


This was written by Nate Burchfield
Updated by Rich to put in "cmd /c" so that it only runs one at a time.