Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use vbs to judge system patch

2026-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly shows you "how to use vbs to judge system patches", the content is simple and easy to understand, the organization is clear, I hope to help you solve doubts, let Xiaobian lead you to study and learn "how to use vbs to judge system patches" this article.

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. "

How to turn off Windows XP Service Pack 2 Firewall?

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

The above is "how to use vbs to judge the system patch" all the contents of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

  • How does vue determine that the value is captured from its child components in a custom event

    This article mainly introduces how vue determines that the value is captured from its sub-components in custom events. It is very detailed and has a certain reference value. Friends who are interested must finish reading it! In a custom event, this value is the value captured from its child components

    12
    Report