如何检测当前已安装的杀毒软件和软件更新时间,就像XP的安全中心那样
2009-07-25 23:47
841 查看
http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/bd97d9e6-75c1-4f58-9573-9009df5de19b
Is there an API to the wscsvc?
API needed to provide such capabilities as:
- programmatically check if antivirus is ok
- add new component that will be monitored by wscsvc
Does such thing exist?
*********************
I've managed to find these links:
Windows Security Center
"You have some Non Disclosure Agreement document to sign before you get the access to the security center. The interface is not likely availble publicly. The contact information can be found at Implementing the Teredo Security Model"
And there is WMI interface:
Code Snippet
Set oWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!//./root/SecurityCenter")
Set colItems = oWMI.ExecQuery("Select * from AntiVirusProduct")
For Each objAntiVirusProduct In colItems
msg = msg & "companyName: " & objAntiVirusProduct.companyName & vbCrLf
msg = msg & "displayName: " & objAntiVirusProduct.displayName & vbCrLf
msg = msg & "instanceGuid: " & objAntiVirusProduct.instanceGuid & vbCrLf
msg = msg & "onAccessScanningEnabled: " & objAntiVirusProduct.onAccessScanningEnabled & vbCrLf
msg = msg & "productUptoDate: " & objAntiVirusProduct.productUptoDate & vbCrLf
msg = msg & "versionNumber: " & objAntiVirusProduct.versionNumber & vbCrLf
msg = msg & vbCrLf
Next
WScript.Echo msg
Is there an API to the wscsvc?
API needed to provide such capabilities as:
- programmatically check if antivirus is ok
- add new component that will be monitored by wscsvc
Does such thing exist?
*********************
I've managed to find these links:
Windows Security Center
"You have some Non Disclosure Agreement document to sign before you get the access to the security center. The interface is not likely availble publicly. The contact information can be found at Implementing the Teredo Security Model"
And there is WMI interface:
Code Snippet
Set oWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!//./root/SecurityCenter")
Set colItems = oWMI.ExecQuery("Select * from AntiVirusProduct")
For Each objAntiVirusProduct In colItems
msg = msg & "companyName: " & objAntiVirusProduct.companyName & vbCrLf
msg = msg & "displayName: " & objAntiVirusProduct.displayName & vbCrLf
msg = msg & "instanceGuid: " & objAntiVirusProduct.instanceGuid & vbCrLf
msg = msg & "onAccessScanningEnabled: " & objAntiVirusProduct.onAccessScanningEnabled & vbCrLf
msg = msg & "productUptoDate: " & objAntiVirusProduct.productUptoDate & vbCrLf
msg = msg & "versionNumber: " & objAntiVirusProduct.versionNumber & vbCrLf
msg = msg & vbCrLf
Next
WScript.Echo msg
相关文章推荐
- 如何检测当前已安装的杀毒软件和软件更新时间,就像XP的安全中心那样
- 如何在 Linux 上安装和使用恶意软件检测工具 LMD 及杀毒引擎 ClamAV
- 如何在 Linux 上安装和使用恶意软件检测工具 LMD 及杀毒引擎 ClamAV
- 如何在 Linux 上安装和使用恶意软件检测工具 LMD 及杀毒引擎 ClamAV
- 软件系统V3700等BIOS不能更改硬盘为兼容模式的笔记本如何安装XP
- 如何使用yum工具从红帽企业linux5的iso镜像文件上安装或者更新软件包?
- 如何将软件更新集成到 Windows 安装源文件中
- 如何使用 yum 安装/更新/移除 软件
- 如何下载和安装、使用xshell(安全终端模拟软件)工具
- 如何检测iOS里安装的其它软件?
- 加速软件源更新和安装 ubuntu 软件中心
- linux系统rootkit恶意软件安全检测工具rkhunter安装部署、使用详解
- 如何劫持软件更新来安装 Rootkit 的后门访问
- Win7没有和xp一样的驱动安装界面如何手动更新单一驱动程序
- linux RPM包安装、更新、删除等操作命令简明总结, 如何查看yum安装的软件路径 ?
- 如何检测iOS里安装的其它软件?
- 微软已修复Win7/Win8.1媒体中心严重漏洞 用户可下载安装9月安全更新
- Android中实现软件检测更新和自动安装
- 实验:基本的系统安全控制 实验环境 某公司新增了一台企业级服务器,已安装运行RHEL 6操作系统,由系统运维部、软件开发部、技术服务部共同使用。由于用户数量众多,且使用时间不固定,要求针对账号和
- 如何使用域组策略(AD GPO)分发软件安装以及卸载[1.31.2013更新]