And I am going to include the links here, because a) they are useful and b) they compliment some of the posts I’ve written about WMI (Group Policy and WMI Filtering Slowness / The WMI Fix – which is better? / The WMI overflow error with getobject )
… suggested Adrian, of “Text Mode drivers and Sysprep” fame, in response to the “A script to list out the Add/Remove Program entries” post.
Yes, that would work as well.
You’d need to pipe the output of the
WMIC Product command into a file, or write a WMI query on the product class.
You’d need to be aware that there are some “gotta’s” with that though. The Product class is not query optimized. And, Microsoft has expanded the Product class over time. Which is to say, if you’re expect to see a field like InstallSource, it didn’t exist until Windows Vista.
June 2010: Some example queries for WMI and WMIC