Files
WSUS/uninstall-kb-remove-windows-package/readme.md
2025-10-31 08:55:43 +01:00

817 B
Raw Blame History

Remove Windows Updates by KB (PowerShell)

Uninstalls all installed Windows packages whose name matches a given KB via DISM PowerShell cmdlets.

Usage

# List installed packages and filter by KB
Get-WindowsPackage -Online | Where-Object { $_.PackageName -match "KB5032189" } | Select-Object PackageName, State, InstallTime
# Uninstall all packages matching the KB
Remove-Package -KB "KB4589210"

Notes & limitations

MSU files: Remove-WindowsPackage removes packages in the image (.cab/package identities), not .msu directly SSUs cant be uninstalled: Servicing Stack Updates modify the update stack and are not removable. After ResetBase: If you ran DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase, existing update packages can no longer be uninstalled.