WMI: Win32_Product - Does not return all products

  • Thread starter Thread starter Dimitri Meeuws
  • Start date Start date
D

Dimitri Meeuws

I have a problem with returning all products on my system. I 've wrote a
inventory script (in vbscript) to retrieve all software on my system. It
works fine untill I've found that one package was not returned and it was
actually on the system. I've run the script on the system manually (under
the account that has installed this product) and the script returns the
package, but when I've run the script under another admin account, it does
not return the package.

So, I think the Win32_Product returns only the packages that where installed
under "ALLUSERS" mode and the packages that where installed under the user
that runs the script. And NOT the packages that where installed by another
user NOT in "ALLUSERS" mode ("Just Me" selected while installing).

My question is: Is there a possibillity to return ALL Software packages on
the system, so all packages that where installed (under any useraccount)?

Thanks
Dimitri Meeuws
HP Belgium
 
I'm still not having any solution on this one, can somebody help me with
this one?

Thanks
dimitri
 
Hi Dimitri,

I'm still not having any solution on this one, can somebody help me with
this one?

Try enumerating from this registry path:

HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\

And search this group. Torgeir Bakken is frequently posting a script
to do this.

HTH,

Steffen
 
Hi Dimitri,

I'm still not having any solution on this one, can somebody help me with
this one?

Try enumerating from this registry path:

HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\

And search this group. Torgeir Bakken is frequently posting a script
to do this.

HTH,

Steffen
 
Back
Top