Removing the Assessment Tool from Windows Endpoints

Run the script to remove files and other objects related to the tool.

echo "Remove XBC related files..."
 
REM Remove Regisrty key
SET XBC_REG_X86="HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\TMSecurityService"
SET XBC_REG_X64="HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\TrendMicro\TMSecurityService"
REG DELETE %XBC_REG_X86% /f
REG DELETE %XBC_REG_X64% /f

REM Remove Install Folder
SET XBC_FOLDER_X86="C:\Program Files\Trend Micro\Security Service"
SET XBC_FOLDER_X64="C:\Program Files (x86)\Trend Micro\Security Service"
RMDIR /S /Q %XBC_FOLDER_X86%
RMDIR /S /Q %XBC_FOLDER_X64%

REM Remove Task Scheduler
SET XBC_TASK_SCHEDULER_NAME="Trend Micro Security Service"
SCHTASKS /DELETE /TN %XBC_TASK_SCHEDULER_NAME% /F

REM  ================== New Version XBC Rename to Endpoint Basecamp ===========================
 
REM Remove Install Folder
SET XBC_FOLDER_X86="C:\Program Files\Trend Micro\Endpoint Basecamp"
SET XBC_FOLDER_X64="C:\Program Files (x86)\Trend Micro\Endpoint Basecamp"
RMDIR /S /Q %XBC_FOLDER_X86%
RMDIR /S /Q %XBC_FOLDER_X64%

REM Remove Task Scheduler
SET XBC_TASK_SCHEDULER_NAME="Trend Micro Endpoint Basecamp"
SCHTASKS /DELETE /TN %XBC_TASK_SCHEDULER_NAME% /F