4
I'm trying to automate a test process to first uninstall a product if present.
To find the product I've so far found that the information is available through wmi and wmic product get IdentifyingNumber, name, version | findstr /I /C:"Name" retrieves the info I need.
This query and search takes a long time, but I couldn't seem to get a wmi where clause to work.
Is there something I can do to make this faster?
Or, Is there some other method to get to the IdentifyingNumber?
Thank you. That about halves the time it was taking for me, just under a minute down from 2 minutes - about 5 minutes saved per run. I see how the where clause works now too. – Greg Domjan – 2015-07-08T23:15:35.640
you can also add % in the query to make it more common , "name like '%Skype%'" https://codeslammer.wordpress.com/2009/02/21/wmic-wildcard-search-using-like-and/
– TechDog – 2016-09-19T13:19:56.540