Skip to main content

Synopsis

Stops the LabTech service, writes the selected logging level to HKLM:\SOFTWARE\LabTech\Service\Settings (Debuging key), then restarts the service. Calls Get-LTLogging on success to confirm the new value.

Syntax

Set-LTLogging [-Normal] [-Verbose] [<CommonParameters>]
Exactly one of -Normal or -Verbose must be provided. The cmdlet throws a terminating error if neither switch is supplied.

Parameters

Normal
switch
Sets the logging level to Normal. Writes registry value Debuging = 1.
Verbose
switch
Sets the logging level to Verbose. Writes registry value Debuging = 1000. Use this level when troubleshooting agent connectivity or behavior.

Examples

Set logging to normal:
Set-LTLogging -Normal
Set logging to verbose for troubleshooting:
Set-LTLogging -Verbose
Confirm the result immediately after setting:
Set-LTLogging -Normal; Get-LTLogging

Build docs developers (and LLMs) love