Releases: Rezurmas/windows-network-optimizer
Release list
v4.0: Full Interactive Mode + 29-Agent Audited
🚀 v4.0 — The Complete Package
29 autonomous AI agents audited, fixed, and enhanced this script across 6 rounds.
🎮 NEW: Interactive Mode Selection
Run without -Mode and get a beautiful 4-option menu:
- [1] THROUGHPUT — max bandwidth (autotuning=experimental, cubic, LSO/RSC ON)
- [2] LOW LATENCY — min ping (Nagle OFF, ctcp, LSO/RSC OFF, MMCSS=0)
- [3] BALANCED — compromise (adaptive, cubic, Nagle OFF)
- [4] FULL MAX — throughput + telemetry OFF + Cloudflare DNS + ALL adapters
No more .bat launcher needed — the script is fully self-contained!
🔧 Bugs Fixed (since v3.0)
$esc[...]string interpolation parse error (19 places)- UTF-8 encoding crash on Windows PS 5.x (added BOM +
[char]escapes) [char] * [int]undefined operation (6 places →[string][char])- Switch without
breakcausingSystem.Object[]in OS display - Mullvad DNS (DoH-only, dead on port 53) → replaced with dns0.eu
- powercfg tweaks lost after power plan switch (reordered)
- Restore falsely reports success with 0 properties
- Dingbat spinner chars absent from Consolas → Geometric Shapes
🌍 Multi-Language Support
- RegistryKeyword fallback matching for ALL 66 settings
- Works on French, German, Chinese, Japanese, ANY Windows language
🛡️ 32-bit PowerShell Protection
- Detects 32-bit PS on 64-bit Windows
- Skips MMCSS + DeliveryOptimization registry writes
- Clear warnings with path to correct 64-bit PowerShell
🎨 Claude Code-Style Terminal UI
- ANSI truecolor Unicode banner with gradient mode text
- 6-frame spinner animation at every phase
- Unicode status symbols: ● OK, ○ applying, ◆ warning, ✦ tip
- Progress bars during multi-adapter optimization
- Mode-aware ASCII art (⚡/💎/⚖)
- Graceful ASCII fallback for ISE / Server 2012 R2
📊 Stats
- 1968 lines PowerShell (+514 from v3.0)
- 0 syntax errors, braces 502/502 balanced
- 35 functions, 66 NIC patterns with multi-language Keywords
- 21 DNS providers (Mullvad → dns0.eu)
- 7 files tracked (CHANGELOG, .gitattributes, README, LICENSE)
⚠️ Production-Ready — Tested on Live Windows
Confirmed working on Windows 11 build 26200, Realtek Gaming GbE, PowerShell 5.1
v3.1-dev: AI-Audited Terminal UI Overhaul
🧠 Multi-Agent AI Audit + Claude-Style Terminal UI
16 AI agents analyzed, fixed, and enhanced this script across 3 rounds.
🔧 Bug Fixes (CRITICAL → LOW)
- DWORD overflow: NetworkThrottlingIndex
([int]-1)→4294967295(0xFFFFFFFF) - IPv6 detection regex tightened (was matching MACs and port numbers)
- Polish regex patterns anchored (false-positive substring matches)
- Backup validation: aborts optimization if backup creation fails
- Restore-FromBackup crash guards: index bounds, JSON parse safety, adapter name from JSON
- Pre-Win8.1 graceful exit instead of Get-NetAdapter crash
- All
exitcalls →return(dot-source safe, no longer kills console) - Dot-source guard wrapped around entire main execution
- .bat: input validation, stale env vars, admin check, CRLF docs, -All warning
🎨 Claude Code-Style Terminal UI
- ANSI truecolor Unicode banner: rounded box
╭─╮+ gradient text - 6-frame spinner animation (·✻✽✶✳✢) at every optimization phase
- Unicode status symbols: ● OK, ○ applying, ◆ warning, ● error, ✦ tip
- Progress bars:
████░░░░ 75%during multi-adapter optimization - Mode-aware ASCII art: ⚡Throughput / 💎LowLatency / ⚖Balanced
- Gradient text: per-character RGB interpolation (orange → gold)
- Unicode box sections: ╭── PHASE 1 ──╮ instead of ASCII +===+
- Pulse-dot animation during MTU binary search (~30s phase)
🆕 New NIC Vendor Patterns (16 added)
Intel ITR/Interrupt Throttle Rate, Killer GameFast/Stream Detect, Realtek Idle Power Saving/PCIe, Broadcom VMQ/SR-IOV, Gigabit Master Slave — all mode-specific
📦 What's New
CHANGELOG.md(178 lines).gitattributes(CRLF enforcement for .bat/.ps1)- Updated README (compatibility, line count, one-liner fix)
- LICENSE year: 2025-2026
- 1733 lines (+279 from v3.0), 114-line .bat
⚠️ Dev Test Release
This is a development test release — 16 autonomous AI agents modified this code.
Thoroughly tested on Linux (dry-run analysis), but not yet tested on live Windows.
Please test on real hardware before production use.
v3.0 - Full English + Colorful UI + Bug Fixes
Highlights
- Full English translation - all user-facing strings, comments, prompts
- 7 colorful message types - [OK]/[+>]/[!!]/[XX]/[..]/[--]/[??] with distinct colors
- Multi-color startup banner with OS info + mode-based color coding
- 21 DNS providers in interactive menu (Speed/Security/Family/AdBlock/Privacy/EU/China)
- 3 optimization modes: Throughput / LowLatency / Balanced
- Detailed descriptions at every toggle so you know what's being changed
Bug Fixes
- MTU detection locale bug - was using 'Reply from' string match (English only). Now uses ping.exe exit code (works on Polish/German/Chinese/any Windows locale)
- DNS menu prompt now correctly mentions ID 99 (Reset to DHCP)
- Default Mode changed from ambiguous 'Max' to explicit 'Throughput'
- Multiple MTU targets (1.1.1.1 / 8.8.8.8 / 9.9.9.9) for firewall fallback
Compatibility
- Windows 8.1 / 10 / 11
- Windows Server 2012 R2 / 2016 / 2019 / 2022 / 2025
- PowerShell 5.0+
- x86 / x64
Quick Start
# Interactive mode (recommended for first run)
.\Optimize-NetworkAdapter.ps1
# Or just double-click Run-NIC-Optimizer.bat (auto-elevates)CLI Examples
# Gaming preset for all Ethernet
.\Optimize-NetworkAdapter.ps1 -Mode LowLatency -All
# Full automation with Cloudflare DNS + telemetry off
.\Optimize-NetworkAdapter.ps1 -Mode Throughput -All -DnsProvider 1 -DisableTelemetry -Silent
# Rollback
.\Optimize-NetworkAdapter.ps1 -RestoreStats
- 1454 lines of PowerShell
- ~50 functions
- 40 NIC settings, 24 netsh tweaks, 16 registry tweaks, 7 powercfg tweaks
- Validated: zero syntax errors
Reboot required after first run for full effect.