Feedback on script to get Software info from Registry

Welcome Forums General PowerShell Q&A Feedback on script to get Software info from Registry

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

 
Participant
1 month ago.

  • Author
    Posts
  • #177118

    Participant
    Topics: 1
    Replies: 2
    Points: 30
    Rank: Member

    Hi,

    This script is for work, we needed a way to get the version of a specific software, it is installed per user so there could be a scenario where there could be different versions on the same computer. It gets the results that we need.

    I wanted to get feedback to see if I broke down the script into tools appropriately and what things I can improve. I was also wondering if this should be made into a module file or just run the script file when I needed it perhaps with scheduled tasks.

    Adrian

  • #177139

    Participant
    Topics: 1
    Replies: 2
    Points: 30
    Rank: Member

  • #177301
    js

    Participant
    Topics: 25
    Replies: 692
    Points: 1,721
    Helping Hand
    Rank: Community Hero

    That script makes me see red.

  • #177430

    Participant
    Topics: 2
    Replies: 497
    Points: 1,230
    Helping Hand
    Rank: Community Hero

    @adrianm I'd suggest posting it to https://gist.github.com and linking it here. If you add the link to a post here (and make sure to remove any automatically generated link target with the Remove link button, leaving you just with the text of the link in your post) it will automatically pull the gist and embed the script here. That should get around whatever strange issues are cropping up with the forum-native code blocks. 🙂

    • #177658

      Participant
      Topics: 1
      Replies: 2
      Points: 30
      Rank: Member

      Thanks for tip, please see code above

       

You must be logged in to reply to this topic.