The easiest way to remove manually the agent on Windows is by stopping and remove service and deleting its files and folder.
Open a new Command window as Administrator and execute the following commands:
- Stop the DWAgent service:
sc stop DWAgent
- Delete the DWAgent service:
sc delete DWAgent
- Stop the dwagent.exe task:
taskkill /f /im dwagent.exe
- Remove the DWAgent folder:
rmdir /s /q "C:\Program Files\DWAgent"
β οΈ If the Agent is not installed in the default location, enter the current installation path instead of “C:\Program Files\DWAgent“. - RemoveΒ the keyΒ fromΒ theΒ registry:
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DWAgent" /f
- Remove DWAgent entry from Windows menu:
rmdir /s /q "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\DWAgent"
π‘ Alternatively, you can create a batch file (for example: dwagent_uninstall.bat) that contains all of the above commands and performs the removal of the Agent from the Windows system with one command. Using this method, do the following:
- Create a plain text file and name it for example dwagent_uninstall.bat.
- Copy and Paste the following commands into the dwagent_uninstall.bat:
β οΈ If the Agent is not installed in the default location, enter the current installation path instead of “C:\Program Files\DWAgent”.
@echo off
sc stop DWAgent
sc delete DWAgent
taskkill /f /im dwagent.exe
rmdir /s /q "C:\Program Files\DWAgent"
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DWAgent" /f
rmdir /s /q "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\DWAgent"
3. Save the file.
4. Execute dwagent_uninstall.bat using one of the following methods:
- Open the command prompt as Administrator and run dwagent_uninstall.bat.
- Right-click on the dwagent_uninstall.bat file and from the menu that appears, select Run as Administrator.