Home Web Front-end JS Tutorial List Installed Software Features_javascript技巧

List Installed Software Features_javascript技巧

May 16, 2016 pm 07:12 PM
features list software

Description

Returns a list of features for all the software installed on a computer using Windows Installer.  Script Code

复制代码 代码如下:

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

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

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

      WScript.Echo("Accesses: "   objItem.Accesses); 
      WScript.Echo("Attributes: "   objItem.Attributes); 
      WScript.Echo("Caption: "   objItem.Caption); 
      WScript.Echo("Description: "   objItem.Description); 
      WScript.Echo("Identifying Number: "   objItem.IdentifyingNumber); 
      WScript.Echo("Install Date: "   objItem.InstallDate); 
      WScript.Echo("Install State: "   objItem.InstallState); 
      WScript.Echo("Last Use: "   objItem.LastUse); 
      WScript.Echo("Name: "   objItem.Name); 
      WScript.Echo("Product Name: "   objItem.ProductName); 
      WScript.Echo("Status: "   objItem.Status); 
      WScript.Echo("Vendor: "   objItem.Vendor); 
      WScript.Echo("Version: "   objItem.Version); 
      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 AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

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)

Garmin releases first update for new smartwatches amid complaints of buggy launch software Garmin releases first update for new smartwatches amid complaints of buggy launch software Sep 07, 2024 am 06:42 AM

Garmin has only recently released the Enduro 3, Fenix E and Fenix 8, having done so at the tail end of last month. Nonetheless, the company has already issued new software updates for all its new smartwatches. Please note that while the first update

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

List operation //Insert a value from the head of the list. $ret=$redis->lPush('city','guangzhou');//Insert a value from the end of the list. $ret=$redis->rPush('city','guangzhou');//Get the elements in the specified range of the list. 0 represents the first element of the list, -1 represents the last element, and -2 represents the penultimate element. $ret=$redis->l

Fitbit Ace LTE receives major update with new games, contactless payment and other features Fitbit Ace LTE receives major update with new games, contactless payment and other features Aug 08, 2024 pm 09:39 PM

The Fitbit Ace LTE was officially launched in May, but is currently only available in the US. The smartwatch is aimed specifically at children, who can receive rewards for games through a more active lifestyle, while parents can always monitor their

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

1: JSONArray to ListJSONArray string to List//Initialize JSONArrayJSONArrayarray=newJSONArray();array.add(0,"a");array.add(1,"b");array.add(2,"c") ;Listlist=JSONObject.parseArray(array.toJSONString(),String.class);System.out.println(list.to

MSI: After user criticism, cheaper gaming OLEDs will also receive firmware updates - only after a potentially costly update MSI: After user criticism, cheaper gaming OLEDs will also receive firmware updates - only after a potentially costly update Jun 27, 2024 pm 10:03 PM

Monitors can now often be used with extensive setting options and come with their own firmware. A corresponding user interface can be updated as part of firmware updates, for example, and in principle new functions can also be implemented - or bugs c

Galaxy Watch5 and Watch4 get new AI-powered features with One UI 6 Watch beta update Galaxy Watch5 and Watch4 get new AI-powered features with One UI 6 Watch beta update Jun 30, 2024 am 10:35 AM

Samsung is offering Galaxy Watch users a chance to experience new health and sleep tracking features through the One UI 6 Watch beta program. This was initially available for Galaxy Watch6 (which smashed our display brightness test) and Watch6 Classi

How to convert list to numpy How to convert list to numpy Nov 22, 2023 am 11:29 AM

Method to convert list to numpy: 1. Use the numpy.array() function. The first parameter of the function is a list object, which can be a one-dimensional or multi-dimensional list; 2. Use the numpy.asarray() function, which will try its best to Use the data type of the input list; 3. Use the numpy.reshape() function to convert the one-dimensional list into a multi-dimensional NumPy array; 4. Use the numpy.fromiter() function, the first parameter of the function is an iterable object.

WhatsApp intros enhanced video calling features to strengthen its position against Apple FaceTime and other competitors WhatsApp intros enhanced video calling features to strengthen its position against Apple FaceTime and other competitors Jun 19, 2024 am 10:33 AM

WhatsApp is making its video calling option more feature-packed to better compete with Apple FaceTime, Zoom, and Google Meet. The platform has added the ability to add more participants, spotlight a speaker, and share the screen. These are some of th

See all articles