手机
当前位置:查字典教程网 >脚本专栏 >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实现禁用服务

N年前的两个脚本%5c暴库

用vbs判断一个日期是否在指定的时段内

用vbs删除前一天创建的备份文件

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

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

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

刷QQ群的VBS脚本

用vbs实现枚举网络连接的代码

利用vbs类实现css按钮的代码

精品推荐
分类导航