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. 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
      Participant
      Topics: 3
      Replies: 136
      Points: 719
      Helping Hand
      Rank: Major Contributor

      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
      Participant
      Topics: 3
      Replies: 136
      Points: 719
      Helping Hand
      Rank: Major Contributor

      Debug without try..catch.

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