FortiEDR
FortiEDR automates the protection against advanced threats, pre and post-execution, with real time orchestrated incident response functionality.
dhamadi
Staff
Staff
Article Id 398270
Description This article describes the procedure to uninstall FortiEDR Collector configuring a GPO on the Active Directory using a .bat file.
Scope FortiEDR Windows Collector.
Solution

These instructions are useful when FortiEDR collectors are disconnected from FortiEDR Manager and there is a need to massively uninstall, re-install or upgrade the collectors.

 

Important note: Fortinet does not officially support using a Group Policy for Fortinet. The steps below should be used with caution.

 

The first step is to create the .bat file with the uninstall command:

 

  1. Open a notepad and enter the following command:

msiexec.exe /x "GUID" /qn UPWD="Registration password" RMCONFIG=1 /l*vx log.txt 

 

For instructions on how to obtain the collector 'GUID' and Registration password, see Technical Tip: How to uninstall FortiEDR using the msiexec command.

 

  1. Save the file as a .bat file.

 

2025-06-25 21_05_35-192.168.1.180 - Remote Desktop Connection.png

 

On the Active Directory Server:

 

  1. Open Group Policy Management.
  2. Right-click on the required Organizational Units - OU (OUs where the computers needing the uninstallation belong to) and select Create a GPO in this domain and Link it here...

 

CreateGPO1.PNG

 

  1. Assign a name to the GPO and select and select OK.
  2. Right-click on the created Group Policy and select Edit.


EditGPO1.PNG

 

  1. On the Group Policy Management Editor, expand Policies -> Windows Settings and select Scripts (Startup/Shutdown).

 

StartUP1.PNG

 

  1. Double-click on Startup to open Startup Properties.
  2. Select Show Files... to locate the path to the SysVol folder and copy the .bat file into that location.

 

Sysvol1.PNG

 

  1. Back in Startup Properties, select Add and browse to the Sysvol folder and select the .bat file to add the script.

 

Addbat.png

 

  1. Select OK and Apply and OK.
  2. Select Start -> Run to open the run dialog box and execute gpupdate /force.

 

On the Computers:

  1. Wait for around 90 to 120 minutes (depending on the configuration on the server) for the GPO policy to apply to the computers or open cmd and execute gpupdate /force for an immediate update.
  2. After the PC is restarted, the FortiEDR collectors will start uninstalling. The process will take a few minutes.