Files
2025-10-31 08:55:43 +01:00

19 lines
817 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Remove Windows Updates by KB (PowerShell)
Uninstalls all installed Windows packages whose name matches a given **KB** via DISM PowerShell cmdlets.
## Usage
```powershell
# List installed packages and filter by KB
Get-WindowsPackage -Online | Where-Object { $_.PackageName -match "KB5032189" } | Select-Object PackageName, State, InstallTime
```
```powershell
# 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.