Description
Returns a list of features for all the software installed on a computer using Windows Installer. Script Code
Copy codeThe Code is as follows:
Var wbemFlagReturnImmediately = 0x10;
Var wbemFlagForwardOnly = 0x20;
Var ob1_miservice = GetObject ("winmgmts: \\\\\. \ root \ CIMV2 ");
Var colItems = obw.miservice. 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 ();
}