# 6. Disable Wi-Fi Sense / Hotspot Sharing (privacy & performance) reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" /v value /t REG_DWORD /d 0 /f > $null 2>&1 reg add "HKLM\Software\Microsoft\WcmSvc\wifinetworkmanager\config" /v AutoConnectAllowedOEM /t REG_DWORD /d 0 /f > $null 2>&1 Write-Host "[+] Wi-Fi Sense and hotspot sharing disabled" -ForegroundColor Green

# 5. Set TCP auto-tuning to normal netsh int tcp set global autotuninglevel=normal > $null 2>&1 Write-Host "[+] TCP auto-tuning set to normal" -ForegroundColor Green

# 7. Disable RSC (Receive Segment Coalescing) for Wi-Fi foreach ($adapter in $wlanAdapters) Disable-NetAdapterRsc -Name $adapter.Name -ErrorAction SilentlyContinue Write-Host "[+] RSC disabled for $($adapter.Name)" -ForegroundColor Green

<# .SYNOPSIS WLAN Optimizer for Windows 11 .DESCRIPTION Optimizes wireless adapter settings for better performance, lower latency, and improved stability. Must be run as Administrator. #>

# 3. Disable Background Scan (reduce latency) netsh wlan set autoconfig enabled=no interface="Wi-Fi" > $null 2>&1 Write-Host "[+] Background Wi-Fi scanning disabled (lower latency)" -ForegroundColor Green

Write-Host "=== WLAN Optimizer for Windows 11 ===" -ForegroundColor Cyan