Getting the same data appwiz.cpl gets in powershell

Answered Getting the same data appwiz.cpl gets in powershell

  • Wednesday, February 13, 2013 8:33 AM
     
     

    Hi!

    When i do 

    Get-wmiobject -class win32_product

    I get a list of installed programs. but i dont get ALL installed programs since i see some more in appwiz.cpl

    How do i do a powershell query that shows everything that appwiz.cpl does?

All Replies

  • Wednesday, February 13, 2013 10:26 AM
     
      Has Code

    You could have a look in the registry:

    Get-ChildItem HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\


    Jaap Brasser
    http://www.jaapbrasser.com

  • Wednesday, February 13, 2013 12:08 PM
     
     Answered Has Code

    Jaap, that would only display the 32 bit applications on af 64-bit machine.

    You would want both the 32-bit and 64-bit applications of the machine

     

    $app32 = Get-ChildItem HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
    $app64 = Get-ChildItem HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
    
    $appAll = $app32 + $app64
    
    $appAll | % { $_.name }

    However that would most of the time just give you a GUID, instead of a pretty name.


    Best Regards
    Claus Codam
    Consultant, Developer
    Coretech - Blog


  • Wednesday, February 13, 2013 2:20 PM
    Moderator
     
     Proposed