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

Windows Utilities Menu

Windows Utilities Menu is an extensive, portable PowerShell 7.x and Batch system management CLI and interactive TUI toolkit for Windows 11. It exposes 67 native Windows 11 utilities across 9 categories across two synchronized modes:

  1. Interactive Terminal UI (WindowsUtilitiesMenu.bat) — compact flicker-free keyboard navigation (↑/↓, 1–9 hotkeys, / live search, D Dry-Run toggle, L Log toggle)
  2. Headless CLI Flag Execution (WindowsUtilitiesMenu.bat --run <action-id>, --search <query>, --list, --dry-run, --no-pause, --log)

Quick Navigation

Getting Started

Prerequisites

  • Windows 11 (x64 or ARM64)
  • PowerShell 7.x (pwsh.exe) — Install via WinGet:
    winget install --id Microsoft.PowerShell --source winget
    
  • Administrator privileges — Not required for browsing the menu or running read-only/standard utilities; requested automatically via UAC only for elevated repair, network, storage, security, and boot actions.

Option 1: Interactive Terminal UI

Extract the release ZIP (or clone the repository) and run:

WindowsUtilitiesMenu.bat

Keyboard controls:

  • ↑ / ↓ (or j / k) — Move selection
  • Enter or 1–9 — Open category or run utility immediately
  • / — Open live search across all 67 tools
  • D — Toggle live Dry-Run preview mode (zero system changes)
  • L — Toggle daily diagnostic logging
  • B / Esc / ← — Return to Main Menu; Q — Quit

Option 2: Direct CLI, Search & Dry-Run Execution

Pass --run <action-id> to run any utility directly without showing the menu, --search <query> to filter tools, or append --dry-run to preview without making system changes:

WindowsUtilitiesMenu.bat --list
WindowsUtilitiesMenu.bat --search disk
WindowsUtilitiesMenu.bat --run sys-overview
WindowsUtilitiesMenu.bat --run restart-start-menu --no-pause
WindowsUtilitiesMenu.bat --run dism-repair --dry-run

Option 3: Custom Drop-In Modules

Copy scripts\modules\_example.disabled.ps1 to scripts\modules\10_custom_tools.ps1 (or any filename not starting with _ and not ending with .disabled.ps1) to add your own actions to both the interactive menu and CLI automatically. See Extending modules & tools.

CLI Reference

WindowsUtilitiesMenu.bat forwards all arguments directly to scripts\menu.ps1 running on PowerShell 7.x (pwsh.exe). When any CLI flag is supplied, the interactive menu is skipped.

Flags

FlagDescription
(none)Launches the compact interactive PowerShell 7 TUI menu (supports / live search).
--help, -h, /?Displays CLI usage and examples (exit 0).
--list, -lPrints all 9 modules, 67 action IDs, and ADMIN tags (exit 0).
--search <query>, -s, --findSearches all modules and tools by keyword, module name, or action ID (exit 0).
--run <action-id>, -rExecutes the specified action directly without displaying the menu. Exits 2 on unknown IDs.
--dry-run, --what-ifSimulates execution across all 67 actions (WUM_DRY_RUN=1) with zero system changes.
--no-pauseSuppresses trailing pause / timeout prompts in supported scripts (WUM_NO_PAUSE=1).
--log [path]Enables optional diagnostic logging (default: logs\windows-utilities-menu-YYYY-MM-DD.log, 30-day retention).

Action IDs (9 Modules · 67 Native Tools)

ModuleAction IDs
1. System Repairdism-repair, sfc-scan, full-repair, dism-cleanup, wu-status, wu-reset, chkdsk-scan
2. Shell, UI & Audiorestart-explorer, restart-start-menu, restart-shell-all, refresh-icon-cache, kill-frozen-tasks, restart-audio, restart-search
3. Network & NetOpsflush-dns, net-info, net-ports, net-ping-test, net-renew-ip, net-reset-stack, wifi-profiles, hosts-open
4. Storage & Cleanupdisk-health, clear-temp, clear-clipboard, empty-recycle-bin, disk-cleanup, storage-sense, trim-drives, reset-print-spooler
5. System Diagnosticssys-overview, top-processes, event-errors, startup-apps, driver-audit, reliability-monitor, directx-diag, sys-info-gui
6. Security & Defenderdefender-status, defender-update, defender-quick-scan, firewall-status, tpm-bitlocker, local-accounts, security-center
7. Quick Admin Toolsterminal-admin, task-manager, resource-monitor, services, event-viewer, device-manager, disk-mgmt, task-scheduler, registry-editor
8. Power & Bootrestart-gpu-driver, power-plans, battery-report, sleep-study, energy-report, hibernation-toggle, toggle-safe-mode, reboot-uefi
9. WinGet Maintenancewinget-list-upgrades, winget-upgrade-all, winget-source-update, winget-export, winget-info

Troubleshooting

PowerShell 7 (pwsh.exe) Not Found

Install PowerShell 7 via WinGet and open a new terminal:

winget install --id Microsoft.PowerShell --source winget

Icon Cache Refresh Reports Skipped Files

Some thumbcache_*.db or iconcache_*.db files may remain locked if another application (such as a third-party shell utility or cloud sync client) holds an open handle. Signing out and back in releases all handles cleanly.

DISM or SFC Reports Errors

  • Inspect %SystemRoot%\Logs\DISM\dism.log for DISM details.
  • Inspect %SystemRoot%\Logs\CBS\CBS.log for SFC details.
  • Running full-repair (DISM /RestoreHealth followed by sfc /scannow) ensures the Windows component store is healthy before SFC repairs system files.

Reboot to UEFI / BIOS Fails

shutdown /r /fw /t 0 requires a UEFI-booted Windows 11 installation. Systems booted in Legacy BIOS / CSM mode do not expose a UEFI firmware reboot target.

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).

Extending Modules & Tools

Adding a Drop-In Pluggable Module (scripts/modules/*.ps1)

Any file matching scripts\modules\*.ps1 that does not start with _ and does not end with .disabled.ps1 is automatically loaded by scripts\catalog.ps1:

  1. Copy scripts\modules\_example.disabled.ps1 to e.g. scripts\modules\10_custom.ps1.
  2. Return a module hashtable with MenuKey, ModuleId, Name, Description, Optional, and Items.
  3. Each item supports Type = 'PowerShell' (Script = 'ps\your-domain.ps1'; Action = 'your-id'), Type = 'Batch' (Script = 'your-script.bat'), or Type = 'NativeExe' (Exe = '...'; Args = @()).
  4. Run WindowsUtilitiesMenu.bat --list to confirm automatic discovery.

Adding a New PowerShell 7 Action (scripts/ps/*.ps1)

  1. Dot-source scripts\ps\_ui-helpers.ps1 for consistent banners (Write-ActionBanner), confirmations (Confirm-WumAction), and pause handling (Wait-WumFinish).
  2. Accept -Action, -DryRun, and -NoPause, and exit 0 with [DRY-RUN] output immediately when $DryRun -or ($env:WUM_DRY_RUN -eq '1').
  3. Register the item in scripts\catalog.ps1 (or a pluggable module) with RequiresAdmin = $true if elevation is required — scripts\menu.ps1 handles UAC elevation automatically.

Adding a New Batch Utility Script (scripts/*.bat)

  1. Create scripts\<action-id>.bat with Windows CRLF line endings:
    • Call call "%~dp0_common.bat" require_admin "%~f0" if Administrator privileges are required.
    • Call call "%~dp0_common.bat" banner "Your Tool Title".
    • Honor if "%WUM_DRY_RUN%"=="1" immediately after the banner so --dry-run tests remain 100% safe.
    • Honor if not "%WUM_NO_PAUSE%"=="1" before trailing pause or timeout commands.
  2. Register the action in scripts\catalog.ps1 or a pluggable scripts\modules\*.ps1 module.
  3. Update README.md, README.txt, docs\user\cli-reference.md, and CHANGELOG.md under [Unreleased].

Release Packaging

Standalone release archives are built automatically by .github\workflows\release.yml when a semantic version tag (v*.*.*) is pushed, or via manual workflow_dispatch (which defaults to dry_run: true).

Strict Runtime Allowlist

Release archives (windows-utilities-menu-<tag>.zip) ship only runtime files plus the plain-text release guide (README.txt):

  • README.txt
  • WindowsUtilitiesMenu.bat
  • scripts\ (PowerShell 7 scripts, Batch scripts, and pluggable scripts\modules\*.ps1)

Repository-only files (.md, docs\, .github\, book\, tests\, logs\, LICENSE, book.toml) are strictly audited and excluded from the ZIP archive.

Artifacts Produced

  • windows-utilities-menu-<tag>.zip
  • windows-utilities-menu-<tag>.zip.sha256
  • Generated release notes sourced from CHANGELOG.md