Skip to main content

LTTray Detection

Summary​

This remote monitor detects if the port value for the LTTray in the registry matches the actual port that is being used by Windows for the process.

Details​

Suggested "Limit to": Windows Machines
Suggested Alert Style: Continuous
Suggested Alert Template: Autofix - LTTray Fix

Check ActionServer AddressCheck TypeCheck ValueComparatorIntervalResult
System127.0.0.1Run FileSee belowContains900Ports are same

Check Value:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command "$process = Get-Process -Name "ltsvc" -ErrorAction SilentlyContinue | Select-Object -First 1;if($process){$netstatOut = netstat -ano | Where-Object {$_ -match \" $($process.Id)$\"} | Select-Object -First 1;$netstatFormatted = $netstatOut -split ' ' | Where-Object {$_};$port = ($netstatFormatted[1] -split ':')[1];$TrayPort = Get-ItemProperty -Path 'HKLM:\SOFTWARE\LabTech\Service' | select-object -expandproperty TrayPort -ErrorAction SilentlyContinue;if($port -eq $TrayPort){write-host "Ports are Same"}else{write-host "Ports are not same. Netstat Port is: $Port and Registry Port is: $TrayPort"}}else{write-host "Ltsvc.exe process not detected"}"

Dependencies​

LTTray Port Mapping with System Registry

Target​

Windows machine

Changelog​

2025-04-10​

  • Initial version of the document