4 Replies Latest reply on Oct 17, 2016 9:01 AM by klevitan

    Remove agent

    Apprentice

      I'm trying to remove the agent through a scheduled task and under the Result it keeps saying "Client has started processing task" but it just stays like that.

      I have the computer i'm trying to remove the agent from right next to me and the agent/AV is still on the computer after 30 minutes. Never gets removed.

       

      I'm using the .exe package for UninstallWinClient.exe

       

      Any thoughts? Any ideas about why this doesn't get removed?

       

      Thanks,

        • 1. Re: Remove agent
          steve.may Apprentice

          Have you tried doing this in a batch file, or only as a EXE package?

          • 2. Re: Remove agent
            Apprentice

            Yes, i have tired both. The folder sdmcache does not even get the copy of the agent or batch to run.

            • 3. Re: Remove agent
              Apprentice

              The way I was able to do this is by making use of scripts under Tools - Distribution - Manage Scripts

              Created script with the following.

               

              [Machines]

              REMEXEC0="\\landesksvr\Packages\LANDesk\uninstallLandeskAgent.bat"

               

               

               

              ------------------------------------------

              The bat file it points to contains the following. (uninstallLandeskAgent.bat)

              \\landesksvr\Packages\LANDesk\UninstallWinClient.exe /NOREBOOT

              exit /b 0

               

              ----------------

              UninstallWinClient.exe resides in the same directory as bat file, no need to copy locally

              • 4. Re: Remove agent
                klevitan Specialist

                Once the agent is uninstalled it wont be able to report back to the server to tell it that the task succeeded.

                Have you confirmed if the agent actually is uninstalled?