Skip to main content

Synopsis

Reads the Debuging value from the agent’s registry (HKLM:\SOFTWARE\LabTech\Service\Settings) and returns a human-readable string describing the current logging level.

Syntax

Get-LTLogging [<CommonParameters>]

Parameters

This cmdlet has no additional parameters beyond the common PowerShell parameters (-Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable).

Return value

Returns a string describing the active logging level:
Registry valueOutput
1Current logging level: Normal
1000Current logging level: Verbose
An error is written if the registry value is absent or set to an unrecognized value.

Examples

Display the current logging level:
Get-LTLogging

Build docs developers (and LLMs) love