Hello
in my test win server 2012 R2 datacenter, i have installed some applications such as mozilla firefox, Advanced renamer, office, Acrobat reader.
when i run either of the following commands to get the list of all installed Applications, system doesn't list some of them in result . for example office & Google chrome & some others are shown but Mozilla Firefox & Advanced renamer & some others are not !
a searched a lot but found nothing.
any idea?
There are a couple of big problems with Win32_Product. First, it will only show you applications that were installed using the Microsoft installer (*.msi). Second, every time you invoke it the computer will revalidate every MSI installed application. Check out the Application log of the server you're testing on to see what I mean. For this reason I almost always avoid this class.
More info:
http://myitforum.com/cs2/blogs/gramsey/archive/2011/01/25/win32-product-is-evil.aspx
Indeed, it is best to avoid the Win32_Product class, I actually wrote a script that exclusively gather the information from the registry of your local machine or any remote system. It is available in the Technet Script Gallery, maybe this will generate a more complete listing for you:
https://gallery.technet.microsoft.com/scriptcenter/Get-RemoteProgram-Get-list-de9fd2b4
thanks to both . useful Guide helped.
regards