Get-WmiObject -ComputerName $computer -Class win32_product no show all installed application

Wu Yuki 81 Reputation points
2022-01-06T09:19:49.537+00:00

Hi ,

I tried to get all the application installed in domain PC with below command, however, some application are not listed out.

Get-WmiObject -ComputerName $computer -Class win32_product |Select-Object name,packgename,installdate,version,caption |Format-Table

what I want is all the application listed in Control Panel\All Control Panel Items\Programs and Features , however above coommand just listed few.

Any ideas?

Thanks for your help .

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 47,901 Reputation points
    2022-01-06T15:38:19.597+00:00

    The WIN32_Product WMI class doesn't return all the installed software. To get a list, try accessing these two registry keys:

    # get 64-bit software on 64-bit systems OR 32-bit software on 32-bit systems
    [array]$32_or_64bitsoftware = get-itemproperty 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*'
    # get 32-bit software ON 64-bit systems
    [array]$32_on_64bitsoftware = get-itemproperty 'HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*'
    

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.