# Powershell Sofware Query Specific software

**URL:** <https://forums.powershell.org/t/powershell-sofware-query-specific-software/13322>\
**Category:** PowerShell Help\
**Created:** [October 22, 2019, 7:44am UTC](https://forums.powershell.org/t/powershell-sofware-query-specific-software/13322 "2019-10-22T07:44:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![willifreth](https://avatars.discourse-cdn.com/v4/letter/w/f0a364/32.png) [@willifreth](https://forums.powershell.org/u/willifreth)\
**Post date:** [October 22, 2019, 7:44am UTC](https://forums.powershell.org/t/powershell-sofware-query-specific-software/13322/1 "2019-10-22T07:44:29Z")

</div>

Hi Guys,

I’m new here and I was wondering if any one can help w/ this powershell script. [Query Specific Installed Software on remote PC · GitHub](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.

---

<div class="post-metadata">

**Author:** ![kpatnayakuni](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/kpatnayakuni/32/19_2.png) [@kpatnayakuni](https://forums.powershell.org/u/kpatnayakuni)\
**Post date:** [October 22, 2019, 11:57am UTC](https://forums.powershell.org/t/powershell-sofware-query-specific-software/13322/2 "2019-10-22T11:57:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![willifreth](https://avatars.discourse-cdn.com/v4/letter/w/f0a364/32.png) [@willifreth](https://forums.powershell.org/u/willifreth)\
**Post date:** [October 22, 2019, 1:26pm UTC](https://forums.powershell.org/t/powershell-sofware-query-specific-software/13322/3 "2019-10-22T13:26:09Z")

</div>

[quote quote=184395]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.[/quote]

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

---

<div class="post-metadata">

**Author:** ![kpatnayakuni](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/kpatnayakuni/32/19_2.png) [@kpatnayakuni](https://forums.powershell.org/u/kpatnayakuni)\
**Post date:** [October 22, 2019, 9:39pm UTC](https://forums.powershell.org/t/powershell-sofware-query-specific-software/13322/4 "2019-10-22T21:39:42Z")

</div>

Debug without try…catch.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:31pm UTC](https://forums.powershell.org/t/powershell-sofware-query-specific-software/13322/5 "2024-05-16T20:31:39Z")

</div>


