Latest Security Update KB

149 Views Asked by At

I'm looking how to get programmatically the KB of latest security update, currently in use on local computer . Any tips ? I've tried some thins like wuapi but i'm not getting any results . I wanna check if the MS17-010: Security update for Windows SMB is in use .

1

There are 1 best solutions below

0
Gabor Lengyel On

To check a specific update programmatically, you can for example query the registry. Under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages a key with the name that contains the KB identifier should be present (eg. "Package_for_KB111111_..."), and under that the CurrentState value is decimal 112 if it is fully installed.

MS17-010 is KB4012598.

Some more info with other possible statuses and more is here.