How To: Uninstall the LANDESK Agent

Version 15

    Verified Product Versions

    LANDESK Management Suite 9.5LANDESK Management Suite 9.6LANDESK Management Suite 2016.x

    Environment: Various



    How to uninstall the LANDESK agent?

    Warning: Do Not use the /ForceClean switch on a Core server/Service Desk server when removing an agent from the server.  This will break the Core/Service Desk server!!!!!!!!



    Run UninstallWinClient.exe. This program is located in the ldmain share on the Core Server by default (C:\Program Files\LANDesk\ManagementSuite\ldmain). It can be run from that share or copied to the local client and executed. It is a standalone program and does not rely on any other files in order to run. UninstallWinClient.exe removes the Windows agent only.


    By design, UninstallWinClient.exe will remove:

    • All LANDESK files except some in ‘all users\application data\’ such as the APM DB

    • All LANDESK start menu shortcuts

    • All LANDESK services

    • All registry values and keys except the common API keys containing the LANDESK GUID


    UninstallWinClient.exe has the following command-line options:



    The client will not be rebooted after the agent removal process completes.


    After the agent removal operation the user is prompted to reboot.


    A progress window is displayed during the agent removal process


    CBA8 (LANDESK Management Agent Service) is not removed by the process. This is useful in some special cases, for example when the agent installation breaks some particular 3rd party software based on the CBA8


    This option was introduced in 9.0 and does remove the whole LANDESK installation. However, this includes some shared dlls so it may result in other programs not working properly.


    If you want to uninstall the agent remotely, UninstallWinClient.exe can also be deployed as an Executable Distribution Package.

    • No additional files need to be added to the distribution package.

    • It's recommended to use the /NOREBOOT switch in the package if there is an end user using the client so that the machine doesn't reboot and cause the user to lose work.

    • When you distribute this package, the agent will be uninstalled ,but the status of the task will remain "active" until it times out and eventually fails. This is because the agent is no longer able to report status back to the core.


    If UninstallWinClient.exe is failing to remove part of the agent and is causing problems:

    • Try the version of UninstallWinClient.exe from the newest service pack.

    • Notify customer support.


    Related questions:

    • How to uninstall the LANDESK client without rebooting?
    • What are the UninstallWinClient.exe command line options?
    • Is there a way to clean most of the LANDESK remnants after /ForceClean has been used?


    Related errors:

    • Xtrace log shows : FAILED: bCriticalError is true. Setting exit code to ERROR_INSTALL_FAILURE