Disinstallare aggiornamenti di Windows da remoto

PC-KB Un aggiornamento automatico di Windows vi crea dei problemi sui PC del dominio?

Disinstallatelo da remoto!

Ecco come fare:

Per verificare sul PC se la patch KB31* è stata installata lanciate il comando:

Get-Hotfix -computername "NOME DEL PC REMOTO" | Where-Object { $_.HotfixID -like "KB31*" } | Sort-Object InstalledOn

Otterrete:

Source Description HotFixID InstalledBy InstalledOn
------ ----------- -------- ----------- -----------
NOME_PC... Security Update KB3163018 NT AUTHORITY\SYSTEM 08/03/2016 00:00:00
NOME_PC... Security Update KB3156016 NT AUTHORITY\SYSTEM 08/03/2016 00:00:00
NOME_PC... Security Update KB3150220 NT AUTHORITY\SYSTEM 08/03/2016 00:00:00
NOME_PC... Security Update KB3149090 NT AUTHORITY\SYSTEM 08/03/2016 00:00:00
NOME_PC... Security Update KB3159398 NT AUTHORITY\SYSTEM 08/03/2016 00:00:00

Per rimuovere, ad esempio, le KB3163018 e 3159398, lanciate il comando wusa in questo modo:

psexec \\"NOME DEL PC REMOTO" cmd
wusa.exe /uninstall /kb:3163018 /quiet /norestart /log
wusa.exe /uninstall /kb:3159398 /quiet /norestart /log
exit

Le opzioni quiet e norestart evitano rispettivamente l’uso della GUI (essendo da linea di comando) e il il riavvio non richiesto.

Pubblicità

Lascia un commento qui

Effettua il login con uno di questi metodi per inviare il tuo commento:

Logo di WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )

Connessione a %s...