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 ???
Asked
Active
Viewed 3,996 times
8
-
http://stackoverflow.com/questions/1331887/detect-antivirus-on-windows-using-c-sharp – Vinit Nov 22 '11 at 17:48
-
I don't understand the requirement. What does "up-to-date" mean here, that there are no pending updates to be applied? – neontapir Nov 22 '11 at 17:49
-
yes,it means that there is no pending updates – Tady Nov 22 '11 at 18:11
1 Answers
11
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.

Reed Copsey
- 554,122
- 78
- 1,158
- 1,373