When the User Profile Hive Cleanup Service is activated, the Worry-Free Business Security (WFBS) agent encounters one of the following issues on a Terminal Server 2003:
- The agent cannot be installed.
- The service is not starting.
- The service crashes.
To resolve the issue:
- Make sure that the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\LeakTrack registry key is set to "0".
Uninstalling the User Profile Hive Cleanup service causes the registry value to set back to "1" and the tmlisten will not start.
You can use the following script to automatically set the value to "0":
@echo off
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v LeakTrack /t REG_DWORD /d 0 /f
setlocal ENABLEDELAYEDEXPANSION
if "%PROCESSOR_ARCHITECTURE%" EQU "AMD64" (
call :GETREGFOLDER
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\TrendMicro\PC-cillinNTCorp\CurrentVersion "Application Path"
) else (
call :GETREGFOLDER
HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion "Application Path"
)
if NOT exist "%_REGFOLDER%" (
echo Cannot find Security Agent installation path!!
goto :EOF
)
set SA_PATH=%_REGFOLDER%
chdir /d "%SA_PATH%
start PCCNtMon.exe
net start tmlisten
GOTO :EOF
:GETREGFOLDER
for /F "tokens=1,2 delims=:" %%a in ('REG QUERY %1 /v %2 ^|FINDSTR /I %2 2^>NUL') do (
set DISK=%%a
set FOLDER=%%b
call :GETFOLDER "!DISK:~-1!:!FOLDER!\"
set _REGFOLDER=!_RESULT!
)
GOTO :EOF
:GETFOLDER
set _RESULT=%~dp1
if "%_RESULT:~-1%" NEQ "\" set _RESULT=%_RESULT%\
GOTO :EOF - Install the agent again.