Prerequisites
All three methods require Windows and a PowerShell 2.0 or higher session. PowerShell 3.0 or higher is strongly recommended for full functionality.
- PowerShell version: PS 2.0 is the minimum. The module emits a verbose warning on PS 2 and exits immediately on PS 1. PS 3+ unlocks all features.
- Administrator rights: Required for all functions that install, uninstall, or control services. The module checks for local Administrator group membership (
S-1-5-32-544) and throws if elevation is missing. - Windows only: The module calls Windows-native binaries (
sc.exe,msiexec.exe,regsvr32.exe) and reads theHKLM:\SOFTWARE\LabTechregistry hive. It does not run on Linux or macOS.
Method 1: One-line download
1
Open an Administrator PowerShell session
Right-click the PowerShell icon and select Run as Administrator, or launch from an elevated command prompt:
2
Download and execute the module
Run the following command. It downloads the module source from the LabTech Consulting shortlink and executes it in-memory using
iex (Invoke-Expression). No file is written to disk; the module is available only in the current session.TLS 1.0, 1.1, 1.2, and 1.3 are all enabled by the module at load time. You do not need to configure
[Net.ServicePointManager]::SecurityProtocol manually.3
Verify the module is loaded
Install-LTService, Get-LTServiceInfo, and Restart-LTService.Method 2: Download and import manually
1
Download the module file
Download
LabTech.psm1 from the GitHub repository to a local path.2
Unblock the downloaded file
Windows marks files downloaded from the internet as potentially unsafe. Unblock the file before importing:
3
Import the module
4
Verify the import
Method 3: Clone from GitHub and import
1
Clone the repository
2
Import the module from the cloned path
3
Verify the import
Cloning from GitHub is the best choice when you want to pin to a specific commit, run the module offline after the initial clone, or contribute changes back to the project.
How the module handles your environment automatically
32-bit vs 64-bit detection
When the module loads inside a 32-bit PowerShell process on a 64-bit OS, it detects the mismatch and relaunches itself in the native 64-bit environment. This is required because the LabTech agent is a 64-bit application and its registry keys live under the 64-bit hive.TLS negotiation
The module enables TLS 1.0, 1.1, 1.2, and 1.3 for the current session at load time, using whichever versions the .NET runtime on the host supports. You do not need to configure this manually.SSL certificate handling
The module installs aTrustAllCertsPolicy for the current session, which accepts all SSL certificates including self-signed ones. This is intentional — many on-premises LabTech servers use self-signed certificates.