用vbs判断系统补丁的脚本
用vbs判断系统补丁的脚本
发布时间:2016-12-28 来源:查字典编辑
摘要: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学习
脚本专栏子分类