๐ 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