Getting a filtered list of installed software in powershell

Page 2 of 2 FirstFirst 12

  1. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #11

    RickC said:
    I ran it elevated in PowerShell ISE and called the function using just Get-InstalledSoftware as I only wanted to query the machine it was running on. The script doesn't terminate gracefully when it runs out of results to process but it does the job.
    Thanks @RickC.

    Very strange on my part. I had to Restart my computer for another reason and then I re-ran the Script in PS ISE and it worked !

    Additionally, you can get most of the information that the Function outputs by just running the following commands with or without the filtering criteria . . .

    Code:
    
    Get-ChildItem -Path 'HKLM:Software\Microsoft\Windows\CurrentVersion\Uninstall'
    Get-ChildItem -Path 'HKLM:Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall'
    Get-ChildItem -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Uninstall'
    Last edited by Paul Black; 04 Mar 2023 at 08:47.
      My Computer


  2. Posts : 1,203
    11 Home
       #12

    Paul Black said:
    Thanks @RickC.

    Very strange on my part. I had to Restart my computer for another reason and then I re-ran the Script in PS ISE and it worked !

    Additionally, you can get most of the information that the Function outputs by just running the following commands with or without the filtering criteria . . .

    Code:
    
    Get-ChildItem -Path 'HKLM:Software\Microsoft\Windows\CurrentVersion\Uninstall'
    Get-ChildItem -Path 'HKLM:Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall'
    Get-ChildItem -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Uninstall'
    The HKCU (HKEY_CURRENT_USER) registry hive only applies to the user currently logged in, whereas the function that I linked to uses HKU (HKEY_USERS) so it applies to all user profiles actively loaded on the system.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:18.
Find Us




Windows 10 Forums