List Installed Software Features_javascript技巧
May 16, 2016 pm 07:12 PMDescription
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();?
???}?

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

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

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

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

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

After a long wait and a handful of delays along the way, System76 has finally released its Rust-written Cosmic desktop environment, albeit in public alpha form. Cosmic DE takes the Gnome-based Cosmic Shell extension to the next level with a Wayland-

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

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

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
