WMI: Win32_Product - Does not return all products

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
 
D

Dimitri Meeuws

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

Thanks
dimitri
 
S

Steffen Grellmann

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
 
S

Steffen Grellmann

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top