Get-RemoteProgram Get list of installed programs on remote or local computer

This script generates a list by querying the registry and returning the installed programs of a local or remote computer. It allows for retrieval of additional properties such as the uninstall string of an application as well.

 
 
 
 
 
4.4 Star
(65)
111,461 times
Add to favorites
Operating System
8/5/2019
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Roles and Features
    1 Posts | Last post Tue 11:43 PM
    • Thanks for putting this together! Will this enumerate the roles and features installed on the server as well? Specifically, will  this include the version of .NET when installed via the server roles and features menu?
  • LastAccessTime Not Working
    1 Posts | Last post October 21, 2019
    • Using this command:  Get-RemoteProgram -ComputerName MyServerName" -Property LastAccessTime
      
      I get back most of the installed programs, there is a column for "LastAccessTime" but it's blank for all remote servers I query - I'm only remote connecting to servers that are compatible per your documentation such as Server 2008 R2
      
      Also, I know the server has IE and Adobe but they are not on the list of programs?
      
      Any ideas?
  • LastAccessTime Not Working
    1 Posts | Last post October 21, 2019
    • Using this command:  Get-RemoteProgram -ComputerName MyServerName" -Property LastAccessTime
      
      I get back most of the installed programs, there is a column for "LastAccessTime" but it's blank for all remote servers I query - I'm only remote connecting to servers that are compatible per your documentation such as Server 2008 R2
      
      Also, I know the server has IE and Adobe but they are not on the list of programs?
      
      Any ideas?
  • Export to CSV file
    1 Posts | Last post October 09, 2019
    • Is there a way for this to report out to a CSV file.
      Either a tab for each computer or on one tab so it is easier to compare what one system has and another does not.
  • error when running against remote computer
    1 Posts | Last post October 04, 2019
    • Jaap -
      
      The script works perfectly on my local machine but when I try to run it against a remote computer I get the following error:
      
      get-remoteprogram : Exception calling "OpenRemoteBaseKey" with "2" argument(s): "The network path was not found."
      
      The target computer is online, I have admin permissions, and can query "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" via Invoke-Command.
      
      Any ideas?
      
      Thanks.
      
      - Matt
  • Thank you
    1 Posts | Last post September 26, 2019
    • Hey Jaap Brasser, thank you very much. Your script rules like a boss xD
  • How to use this script
    2 Posts | Last post September 26, 2019
    • Is there any document on how to use this script (PS i am a novice to scripting)
    • * Save the script in some folder with get-remoteprogram.psm1 (pay atention to PSM1 file extension);
      * Open Powershell in elevated way and go to folder where get-remoteprogram.psm1  is inside. Run the cmdlet:
      
      import-module get-remoteprogram.psm1 (Maybe no output will occur. it's ok.)
      
      * inside the PMS1 file between line 50 - 117 are the sintaxe and examples.
      
      Have fun :)
      
      
      
  • Host offline
    1 Posts | Last post August 29, 2019
    • Hello Jaap,
      
      When looping through an array of Hosts, do you have a suggestion for skipping offline Hosts? 
      
      Right now I am doing this 
      
      
      if (Test-Connection -Count 1 -TimeToLive 50 $targetset.Trim() -Quiet){
       Write-Host "Ping was good for " $targetset.Trim()
       $results += Get-RemoteProgram -ComputerName $targetset.Trim() -Property DisplayVersion | Where-Object ProgramName -eq 'Symantec Endpoint Protection' 
       }
       else{Write-Host "Could not ping " $targetset.Trim()}
      }
      
      }
      $results
      
      Which works, but it's really slow.
  • -ExcludeSimilar -SimilarWord
    1 Posts | Last post August 15, 2019
    • Hello,
      
      I'm attempting to use this, which is an absolute god send but it's failing to pick this up for me.
      
      It will consistently return values that have the exact same programname but different uninstall strings and different regpaths
      RightFax Product Suite - Client
      
      Even if set at 1 or 2, it will return this and Adobe Air
      
      Get-RemoteProgram -ComputerName $c -ExcludeSimilar -SimilarWord 1 -DisplayRegPath | Sort-Object ProgramName
  • Error Logging
    1 Posts | Last post August 14, 2019
    • Hi,
      
      first, i tested the script on Windows Server 2016 and Windows 10 OS - is working
      
      my problem is, that i get no Logging. I have a List with over 100 Server and if i run the script to scan the software on this servers i get some errors, but i dont know on which server it is.
      
      For example:
      
      Get-RemoteProgram : Exception calling ".ctor" with "2" argument(s): "A connection attempt failed because the connected
      party did not properly respond after a period of time, or established connection failed because connected host has
      failed to respond 172.21.170.10:445"
      At \\XXX\Share-TSADM$\scripts\WS-Server\Server\Get-RemoteProgram\Run_With_PowerShell.ps1:3 char:38
      + ... rList.txt | Get-RemoteProgram -Property Publisher,InstallDate,Display ...
      +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
          + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-RemoteProgram
      
      Get-RemoteProgram : Exception calling "OpenSubKey" with "1" argument(s): "Requested registry access is not allowed."
      At \\XXX\Share-TSADM$\scripts\WS-Server\Server\Get-RemoteProgram\Run_With_PowerShell.ps1:3 char:38
      + ... rList.txt | Get-RemoteProgram -Property Publisher,InstallDate,Display ...
      +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      
      How i know on which server i got this errors?
      Thanks in advance.
          
1 - 10 of 81 Items