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:
$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
|