Finding computers that have software installed

Welcome Forums General PowerShell Q&A Finding computers that have software installed

Viewing 6 reply threads
  • Author
    Posts
    • #248149
      Participant
      Topics: 1
      Replies: 0
      Points: 12
      Rank: Member

      Hello everyone,

      I’m looking for code that checks on which computers the putty software is installed.
      The output need to be exports the list of computer names to 2 files,
      In the first file it will be written in which computer names the software is installed and in the second file in which computer names the software is not installed.

      Thanks for the helpers.

      • This topic was modified 1 month, 2 weeks ago by grokkit.
    • #248161
      Participant
      Topics: 7
      Replies: 2458
      Points: 6,439
      Helping Hand
      Rank: Community MVP

      Adi, welcome to Powershell.org. Please take a moment and read the very first post on top of the list of this forum: Read Me Before Posting! You’ll be Glad You Did!.

      When you post code, error messages, sample data or console output format it as code, please.
      In the “Text” view you can use the code tags “CODE“, in the “Visual” view you can use the format template “Preformatted“. You can go back edit your post and fix the formatting – you don’t have to create a new one.
      Thanks in advance.

      This forum is for scripting questions rather than script requests. We do not write customized and ready to use scripts or solutions on request.

      What have you tried so far? We expect you to make an own attempt to get your task done or to solve your problem. If you have done so already please document here what exactly you have done and show your code. Then we probably might be able to help you step further.

      I think you should search for a software inventory solution for your environment. 😉

    • #248419
      Senior Moderator
      Topics: 10
      Replies: 168
      Points: 899
      Helping Hand
      Rank: Major Contributor

      You can try Get-CimInstance with the class Win32_Product to list applications on the system, but it may not list everything installed. Per the github discussion linked by TonyD05 below, this is bad advice and probably won’t give the desired results anyway. Avoid.

      Instead, have a look at Microsoft’s documentation on Listing all uninstallable applications.

      • This reply was modified 1 month, 2 weeks ago by grokkit. Reason: https://powershell.org/forums/topic/finding-computers-that-have-software-installed/#post-248476
    • #248434
      Participant
      Topics: 0
      Replies: 81
      Points: 362
      Helping Hand
      Rank: Contributor

      Since you can just run Putty without an install, this will be a tough task. When a system runs launches Putty.exe, a registry key HKLM:\Software\SimonTatham will be created. But the .exe could be anywhere on that system or on a remotely shared source.

    • #248476
      Participant
      Topics: 7
      Replies: 124
      Points: 600
      Helping Hand
      Rank: Major Contributor
    • #248521
      Senior Moderator
      Topics: 10
      Replies: 168
      Points: 899
      Helping Hand
      Rank: Major Contributor

      Since you can just run Putty without an install, this will be a tough task. When a system runs launches Putty.exe, a registry key HKLM:\Software\SimonTatham will be created. But the .exe could be anywhere on that system or on a remotely shared source.

      This is an excellent point – PuTTY can be run as a portable application without being locally installed. If that is the case, it will be difficult or impossible to find.

      As an alternative, if you are just using PuTTY for remote shell sessions, you may be able to replace it with PowerShell remoting over SSH and remove the need for PuTTY.

    • #248620
      Participant
      Topics: 7
      Replies: 2458
      Points: 6,439
      Helping Hand
      Rank: Community MVP

      This is an excellent point – PuTTY can be run as a portable application without being locally installed. If that is the case, it will be difficult or impossible to find.

      A client management solution like SCCM could even collect information about local existing not installed executables. 😉

Viewing 6 reply threads
  • You must be logged in to reply to this topic.