Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check programmatically if windows is up-to-date?

I am building an application in c# using windows forms which has to detect if antivirus and antispyware are installed,updated and enabled.I have done this using WMI.Net,but I cannot find a way for checking if Windows 7 is up-to-date. Do you know if this is possible through WMI or any other library ???

like image 728
Tady Avatar asked Nov 22 '11 17:11

Tady


1 Answers

You can use the Windows Update Agent API. It is:

a set of COM interfaces that enable system administrators and programmers to access Windows Update and Windows Server Update Services (WSUS). Scripts and programs can be written to examine which updates are currently available for a computer, and then you can install or uninstall updates.

like image 168
Reed Copsey Avatar answered Sep 28 '22 00:09

Reed Copsey