Is it possible to make a batch file to uninstall a specific windows update (eg. KBxxxxxx)? We use 20 year old web based software to enter hours where I work and a new update is causing the program to crash. The update was blocked on our wsus server, but quite a few machines pulled the update before it was blocked. (we should just move to new software, but unfortunate this is not an option). Any help would be greatly appreciated.
Windows – Batch file to uninstall windows update
batchwindowswsus
Related Topic
- Windows – Newly-built replica WSUS server’s clients can’t find updates or report status
- SCCM 2012 and WSUS…missing Schema folder
- Database – Fix WSUS related DB bloating, Uninstall & Install issues on SBS Server 2008
- Windows Server 2016 not updating through WSUS
- Iis – Unable to Windows Update and WSUS broken
- How to reconnect clients to WSUS after 1809 causes problems after install
Best Answer
Yes, it is. It's largely the same process for installing an update or application with a batch file. (Unfortunately I don't have an example lying around at the moment, since I stopped doing that long ago, and use one of the other methods below.)
Since you mention a WSUS server, I should point out that it's actually a much better idea to uninstall the update through your WSUS server than with a batch file or script. It's safer because it's less likely to result in a botched uninstall or a partial uninstall.
(So set the update's approval status to "remove.")
If you're deadest on a scripted solution, though, and have PowerShell, the Scripting Guy has an example of how to do it with PowerShell.