Powershell Sofware Query Specific software

Welcome Forums General PowerShell Q&A Powershell Sofware Query Specific software

Viewing 3 reply threads
  • Author
    Posts
    • #184329
      Participant
      Topics: 1
      Replies: 1
      Points: -6
      Rank: Member

      Hi Guys,

      I’m new here and I was wondering if any one can help w/ this powershell script. https://gist.github.com/Willifreth/2edbd3dd036c2f5684e309c050dd88a7 found this script in Microsoft script center. basically I want to check on remote computer to has the specific software installed on it. Like Java or Symantec. I know there are lots of power shell script that will pull out the list of installed software but I don’t want the entire list I just want the specific software. the script is perfect but when tested it on two machine one PC has Java and the other PC has symantec when I run the script it export on excel and shows me that both software are not installed. Hope someone can help me modify the script. I was reading a lot of forums and tried to modified it but same outcome.

    • #184395
      Moderator
      Topics: 3
      Replies: 218
      Points: 1,187
      Helping Hand
      Rank: Community Hero

      Hi There,

      You should debug the code line by line. Print the variables $regvar, $RegUninstall and $RegProgram values on the host and verify.

      Thank you.

    • #184422
      Participant
      Topics: 1
      Replies: 1
      Points: -6
      Rank: Member

      Hi There,

      You should debug the code line by line. Print the variables $regvar, $RegUninstall and $RegProgram values on the host and verify.

      Thank you.

      Did run the debug and it only hit line 47;48 and 136

    • #184494
      Moderator
      Topics: 3
      Replies: 218
      Points: 1,187
      Helping Hand
      Rank: Community Hero

      Debug without try..catch.

Viewing 3 reply threads
  • The topic ‘Powershell Sofware Query Specific software’ is closed to new replies.