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?