DWService

⌘K
  1. Home
  2. Docs
  3. DWService
  4. Troubleshoots
  5. πŸ—‘οΈ How do I manually remove the agent on a Windows?

πŸ—‘οΈ How do I manually remove the agent on a Windows?

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:

  1. Stop the DWAgent service:
    sc stop DWAgent
  2. Delete the DWAgent service:
    sc delete DWAgent
  3. Stop the dwagent.exe task:
    taskkill /f /im dwagent.exe
  4. 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“.
  5. RemoveΒ the keyΒ fromΒ theΒ registry:
    reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DWAgent" /f
  6. 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:

  1. Create a plain text file and name it for example dwagent_uninstall.bat.
  2. 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.