Hi,
I am looking at a good way I can interrogate remote machines to work out what software is installed
in Add/Remove programs via C#.
The issue is the various methods return different results.
Some people say don't use Win32_product. Some were saying this is bad for performance.
However the other methods don't seem to return the correct count.
Here are some interesting results....
Add/Remove control panel applet - 108 programs installed
Now compare this to the various methods:
select * from win32_product - 186 items.
select * from Win32reg_AddRemovePrograms - 71 objects.
select * from Win32Reg_AddRemovePrograms64 - 71 objects.
So why is there such a variance - I would of thought they should be *exactly* the same if not
close.
What are other peoples thought on the best method?
Why such a variance?
If I don't mind a performance hit is there anything wrong with using Win32_product?
Thanks,
Ward.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.