2 Replies Latest reply on Oct 23, 2008 5:01 AM by CraigB

    LANDesk to Delete or Remove un-wanted or un-authorized software packages

    Rookie

       

      Hi all,

       

       

      I am new to the LANDesk community and we are in the middle of a new deployment.  We have our core server and several role-up servers in place now and are currently deploying client agents via GPO.  I am seeing a lot of workstations with unauthorized software....is there an easy way to remove these software installs?

       

       

      Thanks a bunch!!

       

       

       

       

       

        • 1. Re: LANDesk to Delete or Remove un-wanted or un-authorized software packages
          Employee

           

          If the applications have MSI installs or you have built SWD packages using package builder, then you should theoretically be able to create an uninstall package in the console and push those applications out, thereby removing the unauthorized applications.

           

           

          If they are not from an msi install, or swd package, you could try writing a bat file with the command line for uninstalling the application in the bat file and pushing that out.

           

           

          1 of 1 people found this helpful
          • 2. Re: LANDesk to Delete or Remove un-wanted or un-authorized software packages
            Rookie

            Hi,

             

            We've found the best method would be to look into the registry of the computer and pick out the uninstall string from HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\xxx (see below)

            registry uninstall settings.JPG

             

             

             

             

            and write a vbs to perform the uninstall

             

            const HKEY_LOCAL_MACHINE = &H80000002
            strComputer = "."
            Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!
            " &_
            strComputer & "\root\default:StdRegProv")

            sub shell(cmd)
            ' Run a command as if you were running from the command line
            dim objShell
            Set objShell = WScript.CreateObject( "WScript.Shell" )
            objShell.Run(cmd)
            Set objShell = Nothing
            end sub

            shell """C:\Program Files\Simple Answers\Alchemist2\unins000.exe"" /SILENT" {enter uninstall string here}

             

            'Lines below delete the registry key added by LANDesk during the install (Policy Delivery)

            strKeyPath = "SOFTWARE\INTEL\LANDesk\LDWM\AppHealing\Agent\AMClient\APM\PolicyCache\{Package-552}"

            oReg.DeleteKey HKEY_LOCAL_MACHINE, strKeyPath

             

             

            Create a software distribution with the Windows Scripting Host package using the code above, create task and deploy.

             

             

            Hope this helps.