Home Web Front-end JS Tutorial List Installed Hot Fixes_javascript技巧

List Installed Hot Fixes_javascript技巧

May 16, 2016 pm 07:12 PM
list

Returns a list of all the hot fixes installed on a computer. 
Script Code

复制代码 代码如下:

var wbemFlagReturnImmediately = 0x10; 
var wbemFlagForwardOnly = 0x20; 

   var objWMIService = GetObject("winmgmts:\\.\root\CIMV2"); 
   var colItems = objWMIService.ExecQuery("SELECT * FROM Win32_QuickFixEngineering", "WQL", 
                                          wbemFlagReturnImmediately | wbemFlagForwardOnly); 

   var enumItems = new Enumerator(colItems); 
   for (; !enumItems.atEnd(); enumItems.moveNext()) { 
      var objItem = enumItems.item(); 

      WScript.Echo("Caption: "   objItem.Caption); 
      WScript.Echo("CS Name: "   objItem.CSName); 
      WScript.Echo("Description: "   objItem.Description); 
      WScript.Echo("Fix Comments: "   objItem.FixComments); 
      WScript.Echo("Hot Fix ID: "   objItem.HotFixID); 
      WScript.Echo("Install Date: "   objItem.InstallDate); 
      WScript.Echo("Installed By: "   objItem.InstalledBy); 
      WScript.Echo("Installed On: "   objItem.InstalledOn); 
      WScript.Echo("Name: "   objItem.Name); 
      WScript.Echo("Service Pack In Effect: "   objItem.ServicePackInEffect); 
      WScript.Echo("Status: "   objItem.Status); 
      WScript.Echo(); 
   } 
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to implement Redis List operation in php How to implement Redis List operation in php May 26, 2023 am 11:51 AM

How to implement Redis List operation in php

How to convert JSONArray to List in Java How to convert JSONArray to List in Java May 04, 2023 pm 05:25 PM

How to convert JSONArray to List in Java

How to sort a list using List.Sort function in C# How to sort a list using List.Sort function in C# Nov 17, 2023 am 10:58 AM

How to sort a list using List.Sort function in C#

What are the common methods of List in Java basics What are the common methods of List in Java basics May 14, 2023 am 10:16 AM

What are the common methods of List in Java basics

How to convert array to List in Java How to convert array to List in Java Apr 19, 2023 am 09:13 AM

How to convert array to List in Java

Why doesn't list.sort() return a sorted list in Python? Why doesn't list.sort() return a sorted list in Python? Sep 18, 2023 am 09:29 AM

Why doesn't list.sort() return a sorted list in Python?

How to convert Json to List, Map and entity into each other in Java How to convert Json to List, Map and entity into each other in Java May 27, 2023 pm 12:07 PM

How to convert Json to List, Map and entity into each other in Java

What is the difference between the set method and the add method in List in java? What is the difference between the set method and the add method in List in java? Apr 19, 2023 pm 07:49 PM

What is the difference between the set method and the add method in List in java?

See all articles