Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Architecture

Windows Utilities Menu uses a single-source-of-truth modular architecture so the interactive TUI, / live search, headless CLI dispatcher, and pluggable module packs remain synchronized.

flowchart TD
    Entry["WindowsUtilitiesMenu.bat"] --> Menu["scripts/menu.ps1 (CLI + TUI + Search)"]
    Catalog["scripts/catalog.ps1"] --> Menu
    Plugins["scripts/modules/*.ps1"] --> Catalog
    Logger["scripts/logger.ps1"] --> Menu
    Menu --> PsHandlers["scripts/ps/*.ps1 (PS7 Domain Handlers)"]
    Menu --> BatScripts["scripts/*.bat (Native Batch Utilities)"]
    Menu --> NativeExe["Native Windows 11 Executables"]

Key Components

  • scripts\catalog.ps1: Defines 8 built-in native categories (repair, shell-ui, network, storage, diagnostics, security, admin-tools, power-boot), exposes Find-WumAction and Search-WumCatalog, and auto-discovers drop-in pluggable modules under scripts\modules\*.ps1 (shipping 09_winget.ps1).
  • WindowsUtilitiesMenu.bat: Thin Batch bootstrapper that sets UTF-8 (chcp 65001), discovers pwsh.exe via scripts\_common.bat, and forwards all arguments to scripts\menu.ps1.
  • scripts\menu.ps1: Dual-mode PowerShell 7 entrypoint. Dispatches CLI flags (--run, --search, --list, --dry-run, --no-pause, --log, --help) immediately, or enters the compact flicker-free TUI with / live search, automatic UAC elevation for elevated PowerShell actions, and live D Dry-Run / L Log toggles.
  • scripts\ps\*.ps1: Native PowerShell 7 domain handlers (repair.ps1, shell.ps1, network.ps1, storage.ps1, diagnostics.ps1, security.ps1, power.ps1, winget.ps1, plus shared _ui-helpers.ps1).
  • scripts\logger.ps1: Optional daily diagnostic logger with SESSION START/SESSION END framing and 30-day log pruning.
  • scripts\_common.bat: Shared UAC elevation (require_admin, dry-run aware), pwsh.exe discovery (find_pwsh), and delayed-expansion-safe console banners (banner).