Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/LabtechConsulting/LabTech-Powershell-Module/llms.txt

Use this file to discover all available pages before exploring further.

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