Why is enumerating installed MSI packages so slow?

后端 未结 5 1439
粉色の甜心
粉色の甜心 2021-01-20 18:31

This is a follow up from this question.

I\'m using this slightly modified script to enumerate all installed MSI packages:

strComputer = \".\"

Set ob         


        
5条回答
  •  南方客
    南方客 (楼主)
    2021-01-20 19:19

    Win32_Product WMI class is so slow because it is doing a Consistency Check - processing every package using Msiexec.exe - everytime you use it.

    Check out the issues and vbscript code to do it using a better method at this page: http://csi-windows.com/toolkit/288-win32product-wmi-class-replacement

提交回复
热议问题