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
Copies the agent’s service folder to aBackup subdirectory alongside the agent installation path, and exports all registry keys under HKLM\SOFTWARE\LabTech to a .reg file. The registry export is re-keyed to HKLM\SOFTWARE\LabTechBackup and imported, making it readable by Get-LTServiceInfoBackup.
Run this command before Uninstall-LTService or Redo-LTService to preserve the current configuration so the agent can be reinstalled with the same settings.
Syntax
Parameters
This cmdlet has no parameters beyond-WhatIf, -Confirm, and the standard common parameters. Pass -WhatIf to preview the backup actions without making changes.
Output
On success, writes the stringThe LabTech Backup has been created. to the output stream.
The backup is written to:
| Item | Location |
|---|---|
| Agent service folder | <BasePath>Backup\ |
| Registry export | <BasePath>Backup\LTBackup.reg |
| Registry import path | HKLM\SOFTWARE\LabTechBackup |