搜索
首页web前端js教程List Installed Software Features_javascript技巧

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(); 
   } 
声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
php如何实现Redis的List操作php如何实现Redis的List操作May 26, 2023 am 11:51 AM

List操作//从list头部插入一个值。$ret=$redis->lPush('city','guangzhou');//从list尾部插入一个值。$ret=$redis->rPush('city','guangzhou');//获取列表指定区间中的元素。0表示列表第一个元素,-1表示最后一个元素,-2表示倒数第二个元素。$ret=$redis->l

Garmin releases first update for new smartwatches amid complaints of buggy launch softwareGarmin releases first update for new smartwatches amid complaints of buggy launch softwareSep 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

Fitbit Ace LTE receives major update with new games, contactless payment and other featuresFitbit Ace LTE receives major update with new games, contactless payment and other featuresAug 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

java中JSONArray互相转换List怎么实现java中JSONArray互相转换List怎么实现May 04, 2023 pm 05:25 PM

1:JSONArray转ListJSONArray字符串转List//初始化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

WhatsApp intros enhanced video calling features to strengthen its position against Apple FaceTime and other competitorsWhatsApp intros enhanced video calling features to strengthen its position against Apple FaceTime and other competitorsJun 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

Galaxy Watch5 and Watch4 get new AI-powered features with One UI 6 Watch beta updateGalaxy Watch5 and Watch4 get new AI-powered features with One UI 6 Watch beta updateJun 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

为什么在Python中list.sort()不会返回已排序的列表?为什么在Python中list.sort()不会返回已排序的列表?Sep 18, 2023 am 09:29 AM

示例在这个例子中,我们先看看list.sort()的用法,然后再继续。在这里,我们创建了一个列表并使用sort()方法按升序排序-#CreatingaListmyList=["Jacob","Harry","Mark","Anthony"]#DisplayingtheListprint("List=",myList)#SorttheListsinAscendingOrdermyList.sort(

MSI: After user criticism, cheaper gaming OLEDs will also receive firmware updates - only after a potentially costly updateMSI: After user criticism, cheaper gaming OLEDs will also receive firmware updates - only after a potentially costly updateJun 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

See all articles

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

AI Hentai Generator

AI Hentai Generator

免费生成ai无尽的。

热门文章

R.E.P.O.能量晶体解释及其做什么(黄色晶体)
3 周前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.最佳图形设置
3 周前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.如果您听不到任何人,如何修复音频
3 周前By尊渡假赌尊渡假赌尊渡假赌

热工具

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

功能强大的PHP集成开发环境

安全考试浏览器

安全考试浏览器

Safe Exam Browser是一个安全的浏览器环境,用于安全地进行在线考试。该软件将任何计算机变成一个安全的工作站。它控制对任何实用工具的访问,并防止学生使用未经授权的资源。

适用于 Eclipse 的 SAP NetWeaver 服务器适配器

适用于 Eclipse 的 SAP NetWeaver 服务器适配器

将Eclipse与SAP NetWeaver应用服务器集成。

WebStorm Mac版

WebStorm Mac版

好用的JavaScript开发工具

Atom编辑器mac版下载

Atom编辑器mac版下载

最流行的的开源编辑器