Synopsis
ReadsHKLM:\SOFTWARE\LabTechBackup\Service and returns the backed-up agent registry values as a PSCustomObject. This is the companion to New-LTServiceBackup, which writes those values in the first place.
The function is particularly useful in Redo-LTService scenarios where the live HKLM:\SOFTWARE\LabTech\Service key has already been removed (e.g. during an uninstall/reinstall cycle) and the current service info is no longer available. Test-LTPorts also falls back to this function when Get-LTServiceInfo returns no server address.
Like Get-LTServiceInfo, the function synthesizes a Server property by splitting the raw Server Address registry value on | and trimming entries.
If HKLM:\SOFTWARE\LabTechBackup\Service does not exist the function writes an error instructing the caller to run New-LTServiceBackup first.
Syntax
Parameters
This command has no named parameters. It accepts only PowerShell common parameters.Return Values
Returns a singlePSCustomObject with the same shape as the object returned by Get-LTServiceInfo, sourced from the backup registry hive instead of the live service key.