Skip to main content

Module psadt

Module psadt 

Source
Expand description

PSADT Legacy format parser.

Parses log lines produced by PSAppDeployToolkit v4 with LogStyle = 'Legacy': [2024-12-24 14:44:13.658] [Install] [Start-ADTMsiProcess] [Error] :: Message text here

Fields extracted:

  1. timestamp (yyyy-MM-dd HH:mm:ss.fff)
  2. section (Initialization, Pre-Install, Install, Post-Install, Finalization)
  3. source (PSADT function name, e.g. Close-ADTSession)
  4. severity (Info, Warning, Error, Success)
  5. message (everything after :: )

Functions§

matches_psadt_legacy_content
Detection helper: returns a weight indicating how likely the line is PSADT Legacy format.
parse_lines
Parse all lines as PSADT Legacy format. Lines that don’t match the format fall back to plain text entries with text-based severity detection.