1 Reply Latest reply on Feb 6, 2013 9:55 PM by Catalysttgj

    Almost there:  Get Uninstall Strings for computer

    Apprentice

      Ok, ok.  Like many of you, I have been waiting ("patiently") for LANDesk to bake in the uninstall strings from the registry into the inventory.  Not sure why it isn't there, but since I had a little time, I thought I would try a couple of things.  It is not perfect yet, but getting there.

       

      Tools:

      1. a script that pulls the displayname and uninstallstring from each of the keys in the 32bit and 64 bit sections of the registry.

      I chose http://gallery.technet.microsoft.com/scriptcenter/Get-All-Installed-Software-73a07eba and added output to a file at the end of the script.

       

      2. I am trying to make is work inside the Right-Click Menu feature.

      Capture1.jpg     

      2a. Here is where is gets a little hinky.   Two things, remote registry has to be on even if testing on your local machine

           Even still this is the error I get...

      capture2.jpg

       

       

      A little more work to go...

      Here is where I ask for your help.  Ultimately, I believe this will work well if

      1. In right-click menu we call a bat file or vbs, which might look something like this:
      2. @echo off
        cls
        :Need to receive the %"Computer"."Network"."TCPIP"."Address"% and pass it through, not sure how
        Set IP = %"Computer"."Network"."TCPIP"."Address"%
        echo %IP%
        
        : Enable Remote registry
        sc \\%IP% start RemoteRegistry
        powershell Set-ExecutionPolicy Unrestricted
        powershell .\getInstalledSoftware.ps1 -computer %IP%
        powershell Set-ExecutionPolicy Restricted
        
        :Open output file
        Notepad.exe c:\temp\Output.txt
        

       

      Let me know what you guys/gals think.

       

      If someone already has this working, I would love to see it.