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.

Supported versions

The module has been tested against the following LabTech / ConnectWise Automate server versions: 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

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:

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.