Author Posts

September 20, 2017 at 9:45 pm

Normally you could use something as simple as Get-Wmiobject -class Win32_product.
But in today's security environment it becomes more difficult. I am not able to use the Get-Wmiobject across VLANS so I am looking for another way to find installed software and for that matter a good substitute for other -class in Get-Wmiobject.

September 21, 2017 at 2:44 am

This blog.explains how to use the registry to get this information, https://blogs.technet.microsoft.com/heyscriptingguy/2013/11/15/use-powershell-to-find-installed-software/.

If you have to use win32_product, you could use get-ciminstance instead so you can leverage winrm over http to get through your firewalls.

September 21, 2017 at 12:54 pm

Will,

Thank you the link was very helpful. using the Get-itemproperty work really good. I was able to nested it in a -scriptblock with invoke-command. I now just need to work with it to see how I can get the information to display the way I want it.

The get-ciminstance works well on the local host but does not work when I try to remote with it.
The WS_Management service cannot process the request. A DMTF resource URI was used to access a non-DMTF Class. If I use Invoke-command and place get-ciminstance in a -script block I get the following error.
The term Get-ciminstance is not recongnized as the name of a cmdlet, function, script file, or operable program.

Thank you so much for the information.