LISSTech.UserSessions

26.114.5

Enumerate and manage Windows Terminal Services user sessions across your estate,
via the WTSEnumerateSessions Win32 API. Three cmdlets:

 Find-UserSession  : emits session objects (pipeline-friendly, scriptable)
 Show-UserSession  : renders a rich terminal report with async parallel logoff
                     and an optional ticket-ready HTML report
 Stop-U
Enumerate and manage Windows Terminal Services user sessions across your estate,
via the WTSEnumerateSessions Win32 API. Three cmdlets:

 Find-UserSession  : emits session objects (pipeline-friendly, scriptable)
 Show-UserSession  : renders a rich terminal report with async parallel logoff
                     and an optional ticket-ready HTML report
 Stop-UserSession  : pipeline-bound WTSLogoffSession wrapper

Designed for MSP maintenance-window workflows — scan a domain, filter sessions,
log them off in bulk with live progress, and drop a ticket-ready summary on
the clipboard. Works on Windows PowerShell 5.1 / Server 2016+ with no external
module dependencies (AD lookups use DirectorySearcher).
Show more

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name LISSTech.UserSessions

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name LISSTech.UserSessions

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 LISS Consulting, Corp. All rights reserved.

Package Details

Author(s)

  • LISS Technologies

Tags

TerminalServices RDP Sessions MSP WTS LISSTech

Functions

Find-UserSession Show-UserSession Stop-UserSession

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

26.113.2 — Reporting subsystem refactor.
 * Reports now live in Private/Reporting/ split across 6 files:
   ReportModel     — view model + domain language
   ReportStyles    — palette + CSS in one place
   ReportHtmlSections — one pure function per section (OCP)
   ReportHtml      — composer (reads like a table of contents)
   ReportDispatch  — side effects (file, clipboard, browser)
 * New-ReportContext is the seam: presentation shape independent of
   scan result internals, so tests can inject synthetic data.
 * Resolve-ReportClipboardDecision + Resolve-ReportFilePath are pure
   functions — the dispatch logic is now unit-testable.
 * BDD Pester suite added under tests/ReportRendering.Tests.ps1
   with Given/When/Then for the behaviors that matter (format choice,
   section presence, scope description).
 * No user-facing behavior change.

26.113.1 — HTML reports paste as rendered content.
 * -Report html now copies the rendered HTML to the clipboard via
   the Windows CF_HTML clipboard format, so Ctrl+V into HaloPSA /
   Outlook / Word pastes the formatted report (tables, colors,
   borders, everything) — not raw HTML source.
 * Browser preview still opens by default. Pass -Clipboard:$false
   to suppress the clipboard write when you only want the preview.
 * New Private helper Set-ClipboardHtml with STA-thread dispatch
   for compatibility with PS 7 (MTA default).

26.113.0 — Plural rebrand, CalVer, GH-ready.
 * Module renamed LISSTech.UserSession → LISSTech.UserSessions.
 * Adopted CalVer (YY.DOY.patch) matching LISSTech.Billboard.
 * Emitted session object type renamed LISSTech.UserSession →
   LISSTech.UserSessions.Session for consistency.
 * Full GitHub repo scaffolding: README with badges + Mermaid diagrams,
   Apache 2.0 LICENSE, justfile with build/test/publish recipes,
   docs/ with brand assets, scripts/ with build utilities,
   tests/ with Pester skeleton, CLAUDE.md for AI pair-programming.
 * Cmdlet names remain singular (Find/Show/Stop-UserSession) per
   PowerShell's approved-verb + singular-noun convention. Existing
   scripts continue to work; only the module and type identities
   shifted to plural.

Prior history carried over from LISSTech.UserSession 1.0.0 through 1.5.0 —
see CHANGELOG.md for full detail.

FileList

Version History

Version Downloads Last updated
26.114.5 (current version) 3 4/24/2026
26.114.4 3 4/24/2026
26.113.2 5 4/24/2026