WMI query to get data from Add Remove programs is missing some fields..

I want to run a WMI query that gets that data shown in add remove programs.

I ran select * from win32_product and it showed some data but was missing for example "size" or "comments".

This data is stored under:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\<SID>\Products\<product>\InstallProperties

July 24th, 2015 2:01pm

Hi Todd,

 If you are using "Get-WmiObject -Class Win32_Product", I am afraid the only information we got are "Identify Number""Name","Veddor","Version","Caption".
This query get the information from the following registry keys:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Here is a link for reference:
Use PowerShell to Quickly Find Installed Software

http://blogs.technet.com/b/heyscriptingguy/archive/2011/11/13/use-powershell-to-quickly-find-installed-software.aspx

If you want to create a script to get more information, we could try to post a case here.
The Official Scripting Guys Forum! - Microsoft
https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG

Best r

Free Windows Admin Tool Kit Click here and download it now
July 27th, 2015 3:11am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics