Synopsis
Restarts theLTService and LTSvcMon Windows services by calling Stop-LTService followed by Start-LTService. All behavior from those two functions applies, including the pre-stop Kill VNC/Kill Trays commands, the port conflict check on startup, the up-to-1-minute wait for each transition, and the final Send Status check-in command.
Syntax
Parameters
Shows what would happen if the command runs without actually executing it. Neither
Stop-LTService nor Start-LTService perform any real changes.Prompts for confirmation before restarting the services.
Behavior
- Both
LTServiceandLTSvcMonmust already be installed. The function returns an error if either service is not found. - Calls
Stop-LTServicefirst. If that call fails, the function returns without attempting to start the services. - Calls
Start-LTServiceafter a successful stop. If that call fails, the error is written and the function returns. - On success, outputs
Services Restarted successfully.