All Tweaks

Nagle Algorithm

Revert Nagle Changes

Remove Nagle algorithm modifications to return to defaults

Benefit

Allows reverting settings if they cause issues

Impact

medium

Commands (1)

$nics = @(Get-NetAdapter -ErrorAction SilentlyContinue | Where-Object { $_.Status -eq 'Up' }); if ($nics.Count -eq 0) { Write-Host '[ERR] No active network adapters found'; return } foreach ($nic in $nics) { $nicPath = "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\$($nic.InterfaceGuid)"; if (-not (Test-Path $nicPath)) { Write-Host "[SKIP] $($nic.Name) - no registry entry"; continue } $removed = @(); foreach ($name in @('TcpAckFrequency','TCPNoDelay','TcpDelAckTicks')) { $p = Get-ItemProperty -Path $nicPath -Name $name -ErrorAction SilentlyContinue; if ($p) { Remove-ItemProperty -Path $nicPath -Name $name -ErrorAction SilentlyContinue; $removed += $name } } if ($removed.Count -gt 0) { Write-Host "[OK] $($nic.Name) - removed: $($removed -join ', ')" } else { Write-Host "[OK] $($nic.Name) - nothing to revert" } }