Skip to main content

LTTray Port Mapping with System Registry

Summary​

This script maps the port number from netstat and the Windows registry of the LTTray, resolving the intermittent issue of LTTray not showing.

Time Saved by Automation: 10 Minutes

Sample Run​

Sample Run

Dependencies​

LTTray Detection

Global Parameters​

NameExampleRequiredDescription
Ticket Creation0False0 -- No ticket; 1 -- Script will create a ticket for failed attempts

Script States​

NameExampleDescription
LTTrayAutofix%ticketid%This script state will store the LTTray ticket record for auto-close and commenting

Process​

  • This script checks for the ltsvc process.
  • Once found, it checks the port information in netstat.
  • It then matches the port value with the registry value.
  • If the port value is mismatched, it replaces the registry value with the netstat value.
  • After resetting, it checks again to confirm if the value is set properly.
  • If there is an issue during resetting, it creates a ticket.

Output​

  • Script log
  • Script state

Changelog​

2025-04-10​

  • Initial version of the document