Skip to main content
Anthony_E
Staff
Staff
October 28, 2024

Technical Tip: Uninstalling the FortiDLP Agent from the Windows CLI

  • October 28, 2024
  • 0 replies
  • 762 views

Description

This article describes how to uninstall the FortiDLP Agent from the Windows CLI.

Scope

FortiDLP.

Solution

The FortiDLP Agent can be removed via msiexec using the /x flag and the corresponding ProductCode for the specific version installed. A list of recently published ProductCodes can be found in the following article: Technical Tip: Each version of the FortiDLP Agent has a different ProductCode. 

 

For example, to remove the 11.3.3 x64 FortiDLP agent, execute the following:

msiexec /x "{75C6C17E-48B7-4063-BC4A-0DED6705A780}" /qn


If the version installed is missing from the list, contact FortiDLP Support.

Other flags such as /qn for silent execution can be applied as required. Further documentation can be found in the Command-Line Options. 


An alternate method for obtaining the ProductCode:

  • The ProductCode for the currently installed version can also be obtained from Powershell with the following script, as the IdentifyingNumber is shown:

$applications = @()
$applications += Get-ItemProperty "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*"
$applications += Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*"       
$applications | Where-Object DisplayName -Match FortiDLP| Select-Object DisplayName, PSChildName
DisplayName            PSChildName-----------            -----------FortiDLP Agent           {72A53D65-C6A0-46FE-93E2-F8D282B3DACE}


The Agent uninstallation password must be configured. If the Agent configuration in place requires an agent uninstallation password to be provided, an additional CLI attribute of X should be provided with the command containing the uninstallation password. For example:

msiexec /x "{72A53D65-C6A0-46FE-93E2-F8D282B3DACE}" /qn UNINSTALL_PASSWORD=password

    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!