如何以编程方式检查 Windows 是否是最新的? [英] How to check programmatically if windows is up-to-date?

查看:27
本文介绍了如何以编程方式检查 Windows 是否是最新的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Windows 窗体在 c# 中构建一个应用程序,该应用程序必须检测是否安装、更新和启用了防病毒和反间谍软件.我已经使用 WMI.Net 完成了此操作,但我找不到检查 Windows 7 是否已启动的方法-迄今为止.您知道这是否可以通过 WMI 或任何其他库实现???

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 ???

推荐答案

您可以使用 Windows 更新代理 API.它是:

一组 COM 接口,使系统管理员和程序员能够访问 Windows 更新和 Windows 服务器更新服务 (WSUS).可以编写脚本和程序来检查计算机当前可用的更新,然后您可以安装或卸载更新.

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.

这篇关于如何以编程方式检查 Windows 是否是最新的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆