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:
- Interactive Terminal UI (
WindowsUtilitiesMenu.bat) — compact flicker-free keyboard navigation (↑/↓,1–9hotkeys,/live search,DDry-Run toggle,LLog toggle) - Headless CLI Flag Execution (
WindowsUtilitiesMenu.bat --run <action-id>,--search <query>,--list,--dry-run,--no-pause,--log)
Quick Navigation
- New to the toolkit? Start with Getting started.
- Automating maintenance tasks? See the CLI reference.
- Having an issue? Check Troubleshooting.
- Contributing or adding custom modules? Review Architecture and Extending modules & tools.
Getting Started
Prerequisites
- Windows 11 (
x64orARM64) - 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:
↑/↓(orj/k) — Move selectionEnteror1–9— Open category or run utility immediately/— Open live search across all 67 toolsD— Toggle live Dry-Run preview mode (zero system changes)L— Toggle daily diagnostic loggingB/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
| Flag | Description |
|---|---|
| (none) | Launches the compact interactive PowerShell 7 TUI menu (supports / live search). |
--help, -h, /? | Displays CLI usage and examples (exit 0). |
--list, -l | Prints all 9 modules, 67 action IDs, and ADMIN tags (exit 0). |
--search <query>, -s, --find | Searches all modules and tools by keyword, module name, or action ID (exit 0). |
--run <action-id>, -r | Executes the specified action directly without displaying the menu. Exits 2 on unknown IDs. |
--dry-run, --what-if | Simulates execution across all 67 actions (WUM_DRY_RUN=1) with zero system changes. |
--no-pause | Suppresses 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)
| Module | Action IDs |
|---|---|
| 1. System Repair | dism-repair, sfc-scan, full-repair, dism-cleanup, wu-status, wu-reset, chkdsk-scan |
| 2. Shell, UI & Audio | restart-explorer, restart-start-menu, restart-shell-all, refresh-icon-cache, kill-frozen-tasks, restart-audio, restart-search |
| 3. Network & NetOps | flush-dns, net-info, net-ports, net-ping-test, net-renew-ip, net-reset-stack, wifi-profiles, hosts-open |
| 4. Storage & Cleanup | disk-health, clear-temp, clear-clipboard, empty-recycle-bin, disk-cleanup, storage-sense, trim-drives, reset-print-spooler |
| 5. System Diagnostics | sys-overview, top-processes, event-errors, startup-apps, driver-audit, reliability-monitor, directx-diag, sys-info-gui |
| 6. Security & Defender | defender-status, defender-update, defender-quick-scan, firewall-status, tpm-bitlocker, local-accounts, security-center |
| 7. Quick Admin Tools | terminal-admin, task-manager, resource-monitor, services, event-viewer, device-manager, disk-mgmt, task-scheduler, registry-editor |
| 8. Power & Boot | restart-gpu-driver, power-plans, battery-report, sleep-study, energy-report, hibernation-toggle, toggle-safe-mode, reboot-uefi |
| 9. WinGet Maintenance | winget-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.logfor DISM details. - Inspect
%SystemRoot%\Logs\CBS\CBS.logfor SFC details. - Running
full-repair(DISM /RestoreHealthfollowed bysfc /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), exposesFind-WumActionandSearch-WumCatalog, and auto-discovers drop-in pluggable modules underscripts\modules\*.ps1(shipping09_winget.ps1).WindowsUtilitiesMenu.bat: Thin Batch bootstrapper that sets UTF-8 (chcp 65001), discoverspwsh.exeviascripts\_common.bat, and forwards all arguments toscripts\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 liveDDry-Run /LLog 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 withSESSION START/SESSION ENDframing and 30-day log pruning.scripts\_common.bat: Shared UAC elevation (require_admin, dry-run aware),pwsh.exediscovery (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:
- Copy
scripts\modules\_example.disabled.ps1to e.g.scripts\modules\10_custom.ps1. - Return a module hashtable with
MenuKey,ModuleId,Name,Description,Optional, andItems. - Each item supports
Type = 'PowerShell'(Script = 'ps\your-domain.ps1'; Action = 'your-id'),Type = 'Batch'(Script = 'your-script.bat'), orType = 'NativeExe'(Exe = '...'; Args = @()). - Run
WindowsUtilitiesMenu.bat --listto confirm automatic discovery.
Adding a New PowerShell 7 Action (scripts/ps/*.ps1)
- Dot-source
scripts\ps\_ui-helpers.ps1for consistent banners (Write-ActionBanner), confirmations (Confirm-WumAction), and pause handling (Wait-WumFinish). - Accept
-Action,-DryRun, and-NoPause, and exit0with[DRY-RUN]output immediately when$DryRun -or ($env:WUM_DRY_RUN -eq '1'). - Register the item in
scripts\catalog.ps1(or a pluggable module) withRequiresAdmin = $trueif elevation is required —scripts\menu.ps1handles UAC elevation automatically.
Adding a New Batch Utility Script (scripts/*.bat)
- Create
scripts\<action-id>.batwith 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-runtests remain 100% safe. - Honor
if not "%WUM_NO_PAUSE%"=="1"before trailingpauseortimeoutcommands.
- Call
- Register the action in
scripts\catalog.ps1or a pluggablescripts\modules\*.ps1module. - Update
README.md,README.txt,docs\user\cli-reference.md, andCHANGELOG.mdunder[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.txtWindowsUtilitiesMenu.batscripts\(PowerShell 7 scripts, Batch scripts, and pluggablescripts\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>.zipwindows-utilities-menu-<tag>.zip.sha256- Generated release notes sourced from
CHANGELOG.md