Agent uninstallation via Intune

This document clearly explains the process of uninstalling agent via Intune

Generate Agent Cleanup Tool

Generate agent cleanup tool by following instructions in the document

Create app package

    1. Download the zip file

Download the zip file for agent uninstallation via intune

NOTE : Copy the agentcleanuptoolclient.exe to the extracted folder.

  1. Extract IntuneWinAppUtil.exe from the downloaded zip folder and double-click the executable to provide the following input:
    • Source folder: <directory_of_agent_exe>
    • Setup file: AgentCleanupToolClient.exe
    • Output folder: <output_directory>
    • Do you want to specify catalog folder (Y/N)?: N
  2. agent.intunewin will be created in the specified <output_directory>
  3. Use the AgentCleanupToolClient.intunewin app package for deployment in Intune.

Configure Intune

To configure the app

    1. Login to EndPoint Manager Admin Center.
    2. Click on Apps > All Apps > Add
    3. Select App Type to Windows app (Win32)

intune select app type

    1. Select package file and browse to AgentCleanupToolClient.intunewin

Select package file and browse to AgentCleanupToolClient.intunewin for agent uninstallation via intune

    1. Enter Name of the Application and Publisher Information and click Next

Enter Name of the Application and Publisher Information and click Next

  1. Provide the install and uninstall command in the program tab
    • Install Command: AgentCleanupToolClient /silent
    • Uninstall Command: AgentCleanupToolClient /silent
    installation and uninstallation commands for agent uninstallation via intune select requirements to uninstall agent via intune
  2. Configure Detection rule manually.
    • Rule Type: Registry
    • Key Path: HKEY_LOCAL_MACHINE\SOFTWARE\AdventNet\DesktopCentral\DCAgent
    • Value name : DCAgentVersion
    • Detection Method : Value does not exist
    • Associated with a 32-bit app on 64-bit clients: YES
    configure detection rule manually to uninstall agent via intune
  3. Assign the application to your pilot users or all the users as per your requirement.