Skip to main content
The LabTech PowerShell Module is a set of cmdlets that interface directly with the LabTech (ConnectWise Automate) agent service on Windows machines. It lets you install, uninstall, restart, update, and diagnose agents entirely from PowerShell — no GUI required. The module reads and writes to the LabTech registry hive (HKLM:\SOFTWARE\LabTech\Service), communicates with the LabTech server over HTTP/HTTPS, and controls the LTService and LTSvcMon Windows services.
Module version:  1.9.3
Module GUID:     f1f06c84-00c8-11ea-b6e8-000c29aaa7df
Author:          Chris Taylor — labtechconsulting.com

Supported versions

The module has been tested against the following LabTech / ConnectWise Automate server versions:
RangeNotes
v10.5 – v12Legacy on-premises versions
v2019 – v2024Current ConnectWise Automate releases
The module detects the server version at runtime (via 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

VersionSupport level
PowerShell 1Not supported. The module exits immediately with a warning if $PSVersionTable is absent.
PowerShell 2Loads 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.
# From the module source — version gate at load time
If (-not ($PSVersionTable)) {
    Write-Warning 'PS1 Detected. PowerShell Version 2.0 or higher is required.'
    return
}
ElseIf ($PSVersionTable.PSVersion.Major -lt 3) {
    Write-Verbose 'PS2 Detected. PowerShell Version 3.0 or higher may be required for full functionality.'
}

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-WindowsOptionalFeature or DISM before proceeding.

What the module does

The module exports 25 public functions and 2 aliases (Get-LTError and ReInstall-LTService). Key capabilities:
AreaFunctions
LifecycleInstall-LTService, Uninstall-LTService, Redo-LTService, Update-LTService
Service controlStart-LTService, Stop-LTService, Restart-LTService, Reset-LTService
DiagnosticsGet-LTServiceInfo, Get-LTServiceSettings, Get-LTErrors, Test-LTPorts, Get-LTLogging, Set-LTLogging
Backup / restoreNew-LTServiceBackup, Get-LTServiceInfoBackup
Add/Remove ProgramsHide-LTAddRemove, Show-LTAddRemove, Rename-LTAddRemove
ProxyGet-LTProxy, Set-LTProxy
Agent commandsInvoke-LTServiceCommand
SecurityConvertFrom-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.

Build docs developers (and LLMs) love