HKLM:\SOFTWARE\LabTech\Service), communicates with the LabTech server over HTTP/HTTPS, and controls the LTService and LTSvcMon Windows services.
Supported versions
The module has been tested against the following LabTech / ConnectWise Automate server versions:| Range | Notes |
|---|---|
| v10.5 – v12 | Legacy on-premises versions |
| v2019 – v2024 | Current ConnectWise Automate releases |
Agent.aspx) and adjusts download URLs and installer behaviour accordingly. For example, the MSI bundle format introduced in 2024 Patch 7 is handled automatically.
PowerShell compatibility
| Version | Support level |
|---|---|
| PowerShell 1 | Not supported. The module exits immediately with a warning if $PSVersionTable is absent. |
| PowerShell 2 | Loads and runs. A verbose notice is emitted: “PS2 Detected. PowerShell Version 3.0 or higher may be required for full functionality.” |
| PowerShell 3+ | Fully supported. Recommended for all production use. |
Requirements
All functions that install, uninstall, or modify the agent service require an Administrator PowerShell session. The module checks for membership in the local Administrators group (SID
S-1-5-32-544) and throws if the check fails.- Operating system: Windows only. The module manages Windows services, registry keys under
HKLM:\SOFTWARE\LabTech, and native binaries (sc.exe,msiexec.exe,regsvr32.exe). - Elevation: Run PowerShell as Administrator.
- Network: Outbound HTTPS access to the LabTech server is required for install, uninstall, and update operations.
- .NET Framework: Install-LTService requires .NET 3.5. If it is absent, the module attempts to enable it via
Enable-WindowsOptionalFeatureor DISM before proceeding.
What the module does
The module exports 25 public functions and 2 aliases (Get-LTError and ReInstall-LTService). Key capabilities:
| Area | Functions |
|---|---|
| Lifecycle | Install-LTService, Uninstall-LTService, Redo-LTService, Update-LTService |
| Service control | Start-LTService, Stop-LTService, Restart-LTService, Reset-LTService |
| Diagnostics | Get-LTServiceInfo, Get-LTServiceSettings, Get-LTErrors, Test-LTPorts, Get-LTLogging, Set-LTLogging |
| Backup / restore | New-LTServiceBackup, Get-LTServiceInfoBackup |
| Add/Remove Programs | Hide-LTAddRemove, Show-LTAddRemove, Rename-LTAddRemove |
| Proxy | Get-LTProxy, Set-LTProxy |
| Agent commands | Invoke-LTServiceCommand |
| Security | ConvertFrom-LTSecurity, ConvertTo-LTSecurity |
Next steps
Quickstart
Go from zero to a working agent in five steps.
Installation
All the ways to load the module — one-liner, manual import, or Git clone.
Command reference
Full parameter reference for every exported function.