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.
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...
A little more work to go...
Here is where I ask for your help. Ultimately, I believe this will work well if
- In right-click menu we call a bat file or vbs, which might look something like this:
@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.