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.