Skip to main content

Synopsis

Reads %ltsvcdir%\LTProbeErrors.txt (typically C:\Windows\LTSVC\LTProbeErrors.txt) and parses each entry into a structured PSCustomObject. The BasePath is resolved via Get-LTServiceInfo; when that is unavailable it falls back to %windir%\LTSVC. This function mirrors the structure of Get-LTError but targets the probe-specific log file. It is useful on agents that have the Probe role enabled ((Get-LTServiceInfo).Probe -eq '1'). Log entries are delimited by ::: and each entry is tab-separated into three fields: service version, timestamp, and message.

Syntax

Get-LTProbeErrors [<CommonParameters>]

Parameters

This command has no named parameters. It accepts only PowerShell common parameters.

Return Values

Returns a collection of PSCustomObject items, one per log entry.
ServiceVersion
string
The version string of the LTSvc service that wrote the log entry.
Timestamp
datetime
The parsed date and time the entry was written. Parsed with [datetime]::Parse() for broad international locale support; entries that cannot be parsed produce an empty value.
Message
string
The probe error or status message text for the log entry.

Examples

Filter to the last 24 hours

Get-LTProbeErrors | Where-Object { (Get-Date $_.Timestamp) -gt (Get-Date).AddHours(-24) }
Returns only probe error entries written within the last 24 hours.

Browse in an interactive grid

Get-LTProbeErrors | Out-GridView
Opens the full probe error log in a sortable, searchable grid window. Requires a desktop session.

Count errors by message

Get-LTProbeErrors | Group-Object Message | Sort-Object Count -Descending
Aggregates probe errors by message text to identify the most frequent issues.

Build docs developers (and LLMs) love