Enumerating Programs Installed

Welcome Forums General PowerShell Q&A Enumerating Programs Installed

This topic contains 4 replies, has 3 voices, and was last updated by

 
Participant
3 years, 4 months ago.

  • Author
    Posts
  • #29710

    Participant
    Points: 0
    Rank: Member

    How do I use powershell to enumerate all the programs installed on a server?

    I want to view all the programs installed, or a particular program and not just view Windows Features installed.

  • #29711

    Keymaster
    Points: 1,785
    Helping HandTeam Member
    Rank: Community Hero

    Which version of Windows?

  • #29712

    Participant
    Points: 0
    Rank: Member

    Thank you for the prompt reply.

    I have three servers Win 2003, Win 2008 and Win 2012. So I need to know how to enumerate all programs installed on all three.

    I particularly need the method for Win 2008.

  • #29713

    Keymaster
    Points: 1,785
    Helping HandTeam Member
    Rank: Community Hero

    You can use Win32_Product. That has to be installed on 2003, though – it's on the original install media. It's probably the most reliable universal way.

  • #29722

    Participant
    Points: 438
    Helping Hand
    Rank: Contributor

    There are disadvantages to using Win32_Product. It only will report MSI installed applications and will start scan and recofiguration of every MSI on the system. See some articles with a quick search "Win32_Product bad":

    Win32_Product Is Evil.

    Why Win32_Product is Bad News!

    I've posted a function to get installed programs using the registry before here:

    https://powershell.org/forums/topic/invoking-registry-uninstallstring/#post-25281

    If it needs to be adapted for remote use, then you can using remoting and Invoke-Expression or using remote registry methods. It's quick and clean to pull information.

The topic ‘Enumerating Programs Installed’ is closed to new replies.