当前位置: 移动技术网 > IT编程>脚本编程>VBScript > 用vbs判断系统补丁的脚本

用vbs判断系统补丁的脚本

2017年12月12日  | 移动技术网IT编程  | 我要评论

电脑娃娃演员表,痛心切骨,米皮网

 

set objsession = createobject("microsoft.update.session")
set objsearcher = objsession.createupdatesearcher
set objresults = objsearcher.search("type='software'")
set colupdates = objresults.updates

for i = 0 to colupdates.count - 1
   ' if colupdates.item(i).title = _
       ' "security update for windows xp (kb899587)" then
        'if colupdates.item(i).isinstalled <> 0 then
            'wscript.echo "this update is installed."
           ' wscript.quit
        'else
            'wscript.echo "this update is not installed."
          ' wscript.quit
        'end if
   ' end if
   wscript.echo colupdates.item(i).title
next

'wscript.echo "this update is not installed."


如何关闭 windows xp service pack 2 防火墙?

set objfirewall = createobject("hnetcfg.fwmgr")set objpolicy = objfirewall.localpolicy.currentprofile
objpolicy.firewallenabled = falseset objfirewall = createobject("hnetcfg.fwmgr")set objpolicy = objfirewall.localpolicy.currentprofile
objpolicy.firewallenabled = false

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网