Any Code or Function to uninstall KB's silently?

Microsoft has deprecated the silent switch in WUSA so we can no longer silently rollback MS Updates. Does anyone have a function or code to pass a KB # and uninstall via powershell commands. Just trying to not reinvent the wheel. I know powershell does have some commands but wanted a more complete function

Get-WindowsPackage -Online -PackageName "{PACKAGE-NAME}" |Remove-WindowsPackage -Online -NoRestart -Verbose

What is missing for you?
Error handling and logging?
You can add this yourself with this or ask for help here.

More turning into a full function with passing parameters etc… didn’t know if anyone had already created the wheel

Judging by the silence it seems you are cleared to build this wheel.

2 Likes