# jauderho/psfiles architecture

> Architecture diagram of the GitHub repository jauderho/psfiles, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jauderho/psfiles
- Repository: https://github.com/jauderho/psfiles

## Overview

##### Project type and purpose
- This is an open-source PowerShell script repository (“psfiles”) containing a library of administrative and configuration scripts for Windows.
- The README calls it a “Personal PowerShell repository,” with dozens of .ps1 tools and a contrib folder for community or auxiliary scripts.
- It employs a standardized development environment (.devcontainer) and CI pipelines (GitHub workflows) to ensure code quality and security.

##### File structure
Top-level directories and files:
- .devcontainer/ – defines the Docker-based dev environment and configuration.
- .github/workflows/ – CI jobs for linting, security, spell-checking, etc.
- contrib/ – community contributions or extensions (e.g., FindLog4JFiles.ps1).
- A flat list of .ps1 scripts – each script is a distinct tool or function.
- PSScriptAnalyzerSettings.psd1 – linter rules for PowerShell code.
Other artifacts:
- .codespellignore, .gitignore, LICENSE, SECURITY.md, README.md.

##### README for additional insights
- Focus is on personal automation and tooling for Windows.
- Emphasis on quality and security (Super-Linter, OpenSSF Scorecard).

##### Detailed capture of architectural elements
- Individual workflow files or collapse them into “Linting,” “Security Scans,” and “Spell Check” for clarity.
- Differentiate root scripts vs. contrib scripts with a sub-partition.
- PSScriptAnalyzerSettings.psd1 and .codespellignore in the “Configuration” group.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% External Systems
    GitHubRepo["GitHub Repository"]:::external
    DockerHub["Docker Hub"]:::external
    WindowsHosts["Windows Target Hosts"]:::external

    %% Development Environment
    subgraph "Development Environment"
        style DevContainer fill:#98FB98,stroke:#000
        DevContainer[".devcontainer"]:::env
        ENV1["Dockerfile"]:::env
        ENV2["devcontainer.json"]:::env
    end
    click ENV1 "https://github.com/jauderho/psfiles/tree/main/.devcontainer/Dockerfile"
    click ENV2 "https://github.com/jauderho/psfiles/blob/main/.devcontainer/devcontainer.json"

    %% Script Library
    subgraph "Script Library (Root Tools)" 
        style ScriptLib fill:#ADD8E6,stroke:#000
        A1["AdjustTimings.ps1"]:::code
        A2["BBRv2Disable.ps1"]:::code
        A3["BBRv2Enable.ps1"]:::code
        A4["FirefoxTelemetryDisable.ps1"]:::code
        A5["FolderTypeAutoDiscoveryDisable.ps1"]:::code
        A6["LetsEncryptCertUpdate.ps1"]:::code
        A7["NewsAndInterestsDisable.ps1"]:::code
        A8["OfficeTelemetryDisable.ps1"]:::code
        A9["OutlookIgnoreModifiedDate.ps1"]:::code
        A10["PTPEnable.ps1"]:::code
        A11["SecureRDPEnable.ps1"]:::code
        A12["SecureSMBEnable.ps1"]:::code
        A13["TLSv1.2Disable.ps1"]:::code
        A14["TLSv1.2Enable.ps1"]:::code
        A15["TLSv1.3Disable.ps1"]:::code
        A16["TLSv1.3Enable.ps1"]:::code
        A17["UpdateVegaVersion.ps1"]:::code
        A18["VMwareRSSEnable.ps1"]:::code
        A19["Win10Debloat.ps1"]:::code
        A20["Win11AllowUpgrades.ps1"]:::code
        A21["WinPatch.ps1"]:::code
    end
    click A1 "https://github.com/jauderho/psfiles/blob/main/AdjustTimings.ps1"
    click A2 "https://github.com/jauderho/psfiles/blob/main/BBRv2Disable.ps1"
    click A3 "https://github.com/jauderho/psfiles/blob/main/BBRv2Enable.ps1"
    click A4 "https://github.com/jauderho/psfiles/blob/main/FirefoxTelemetryDisable.ps1"
    click A5 "https://github.com/jauderho/psfiles/blob/main/FolderTypeAutoDiscoveryDisable.ps1"
    click A6 "https://github.com/jauderho/psfiles/blob/main/LetsEncryptCertUpdate.ps1"
    click A7 "https://github.com/jauderho/psfiles/blob/main/NewsAndInterestsDisable.ps1"
    click A8 "https://github.com/jauderho/psfiles/blob/main/OfficeTelemetryDisable.ps1"
    click A9 "https://github.com/jauderho/psfiles/blob/main/OutlookIgnoreModifiedDate.ps1"
    click A10 "https://github.com/jauderho/psfiles/blob/main/PTPEnable.ps1"
    click A11 "https://github.com/jauderho/psfiles/blob/main/SecureRDPEnable.ps1"
    click A12 "https://github.com/jauderho/psfiles/blob/main/SecureSMBEnable.ps1"
    click A13 "https://github.com/jauderho/psfiles/blob/main/TLSv1.2Disable.ps1"
    click A14 "https://github.com/jauderho/psfiles/blob/main/TLSv1.2Enable.ps1"
    click A15 "https://github.com/jauderho/psfiles/blob/main/TLSv1.3Disable.ps1"
    click A16 "https://github.com/jauderho/psfiles/blob/main/TLSv1.3Enable.ps1"
    click A17 "https://github.com/jauderho/psfiles/blob/main/UpdateVegaVersion.ps1"
    click A18 "https://github.com/jauderho/psfiles/blob/main/VMwareRSSEnable.ps1"
    click A19 "https://github.com/jauderho/psfiles/blob/main/Win10Debloat.ps1"
    click A20 "https://github.com/jauderho/psfiles/blob/main/Win11AllowUpgrades.ps1"
    click A21 "https://github.com/jauderho/psfiles/blob/main/WinPatch.ps1"

    %% Community Extensions
    subgraph "Community Extensions (contrib)"
        style Contrib fill:#ADD8E6,stroke:#000
        C1["FindLog4JFiles.ps1"]:::code
    end
    click C1 "https://github.com/jauderho/psfiles/blob/main/contrib/FindLog4JFiles.ps1"

    %% Configuration & Metadata
    subgraph "Configuration & Metadata"
        style Config fill:#ADD8E6,stroke:#000
        L1["PSScriptAnalyzerSettings.psd1"]:::code
        L2[".github/linters/.powershell-psscriptanalyzer.psd1"]:::code
        S1[".codespellignore"]:::code
        M1["README.md"]:::code
        M2["LICENSE"]:::code
        M3["SECURITY.md"]:::code
        M4[".gitignore"]:::code
        M5[".github/dependabot.yml"]:::code
    end
    click L1 "https://github.com/jauderho/psfiles/blob/main/PSScriptAnalyzerSettings.psd1"
    click L2 "https://github.com/jauderho/psfiles/blob/main/.github/linters/.powershell-psscriptanalyzer.psd1"
    click S1 "https://github.com/jauderho/psfiles/blob/main/.codespellignore"
    click M1 "https://github.com/jauderho/psfiles/blob/main/README.md"
    click M2 "https://github.com/jauderho/psfiles/tree/main/LICENSE"
    click M3 "https://github.com/jauderho/psfiles/blob/main/SECURITY.md"
    click M4 "https://github.com/jauderho/psfiles/blob/main/.gitignore"
    click M5 "https://github.com/jauderho/psfiles/blob/main/.github/dependabot.yml"

    %% CI/CD Pipelines
    subgraph "CI/CD Pipelines (GitHub Actions)"
        style CI fill:#FFA500,stroke:#000
        CI1["codespell.yml"]:::ci
        CI2["gitlabsync.yml"]:::ci
        CI3["linter.yml"]:::ci
        CI4["powershell-analysis.yml"]:::ci
        CI5["scorecard.yml"]:::ci
        CI6["semgrep.yml"]:::ci
    end
    click CI1 "https://github.com/jauderho/psfiles/blob/main/.github/workflows/codespell.yml"
    click CI2 "https://github.com/jauderho/psfiles/blob/main/.github/workflows/gitlabsync.yml"
    click CI3 "https://github.com/jauderho/psfiles/blob/main/.github/workflows/linter.yml"
    click CI4 "https://github.com/jauderho/psfiles/blob/main/.github/workflows/powershell-analysis.yml"
    click CI5 "https://github.com/jauderho/psfiles/blob/main/.github/workflows/scorecard.yml"
    click CI6 "https://github.com/jauderho/psfiles/blob/main/.github/workflows/semgrep.yml"

    %% Connections
    GitHubRepo -->|"triggers on push/PR"| CI1
    CI1 -->|spell check| CI3
    CI3 -->|linting| CI4
    CI4 -->|security analysis| CI6
    CI6 -->|score evaluation| CI5
    CI5 -->|"merge approved"| GitHubRepo

    GitHubRepo -->|"hosts code"| ScriptLib
    GitHubRepo -->|"hosts code"| Contrib
    GitHubRepo -->|"hosts config"| Config

    DevContainer -->|"provides env for editing"| ScriptLib
    DevContainer -->|"provides env for editing"| Contrib
    DockerHub -->|"base image"| DevContainer

    GitHubRepo -->|"deploy merged code"| WindowsHosts

    %% Styles
    classDef code fill:#ADD8E6,stroke:#000,stroke-width:1px
    classDef env fill:#98FB98,stroke:#000,stroke-width:1px
    classDef ci fill:#FFA500,stroke:#000,stroke-width:1px
    classDef external fill:#D3D3D3,stroke:#000,stroke-width:1px
```
