手机
当前位置:查字典教程网 >脚本专栏 >vbs >用vbs判断系统补丁的脚本
用vbs判断系统补丁的脚本
摘要:SetobjSession=CreateObject("Microsoft.Update.Session")SetobjSearcher=o...

SetobjSession=CreateObject("Microsoft.Update.Session")

SetobjSearcher=objSession.CreateUpdateSearcher

SetobjResults=objSearcher.Search("Type='Software'")

SetcolUpdates=objResults.Updates

Fori=0tocolUpdates.Count-1

'IfcolUpdates.Item(i).Title=_

'"SecurityUpdateforWindowsXP(KB899587)"Then

'IfcolUpdates.Item(i).IsInstalled<>0Then

'Wscript.Echo"Thisupdateisinstalled."

'Wscript.Quit

'Else

'Wscript.Echo"Thisupdateisnotinstalled."

'Wscript.Quit

'EndIf

'EndIf

wscript.echocolUpdates.Item(i).Title

Next

'Wscript.Echo"Thisupdateisnotinstalled."

如何关闭WindowsXPServicePack2防火墙?

SetobjFirewall=CreateObject("HNetCfg.FwMgr")SetobjPolicy=objFirewall.LocalPolicy.CurrentProfile

objPolicy.FirewallEnabled=FALSESetobjFirewall=CreateObject("HNetCfg.FwMgr")SetobjPolicy=objFirewall.LocalPolicy.CurrentProfile

objPolicy.FirewallEnabled=FALSE

【用vbs判断系统补丁的脚本】相关文章:

用vbs实现zip功能的脚本

用VBScript收集系统信息并上传到ftp空间

用vbs列出注册表中 Run 项中的所有项目

用vbs读取文本文件的最后一行

vbs循环产生的参数的传递问题

用vbs遍历文件并随机显示的脚本

使用 Iisftp.vbs 列出FTP站点的方法

远程或本地获取系统信息的脚本RGIS.vbs

用vbs实现取消隐藏文件夹中的所有文件

多进程的vbs脚本

精品推荐
分类导航