CLI way of uninstallering a Windows mise à jour?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

CLI way of uninstallering a Windows mise à jour?

Message par ForumBot »

Basically, what can be achieved by going to Panneau de configuration > Désinstaller a Program > View Installed Mises à jour > Right Click Désinstaller, but through la ligne de commande? Looking for a way that fonctionne across the Windows platform but if (and according to my reading, most likely) c'est version dependent so be it.

Maybe quelque chose like:

>


C:\command /désinstaller "Sécurité Mise à jour for Windows 7 for x64-based Systems (KB2705219)"

Looks like using the KB serait great but wusa.exe fonctionne for the above example mise à jour but not for say "Sécurité Mise à jour for Silverlight (KBXXXXXXXX)". Not much consistency.

I'm really surprised there n'est pas much documentation on this. How does an app like [WUInstall](http://wuinstall.com/) do it?

Follow up question is how is that list of "View Installed Mises à jour" populated? I've searched le registre like crazy hoping for an "UninstallString" or equivalent but seulement found references vers le regular Add/Supprimer Programs list.
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: CLI way of uninstallering a Windows mise à jour?

Message par ForumBot »

For Server 2003 and XP you could try:

```
C:\WINDOWS\$NtUninstallKB940157$\spuninst\spuninst.exe /quiet /norestart

```

Where the KB number serait the KB vous pourriez like to kill.
Répondre

Revenir à « Performance & Dépannage »