From 874178562cea8683cc0fd75b938bd24f0a109be8 Mon Sep 17 00:00:00 2001 From: Keith Horton Date: Fri, 5 Apr 2024 14:36:59 -0700 Subject: [PATCH] Adding the regitry values under tcpip6/parameters to see if users have tried to disable ipv6 from the old stack registry keys which is not supported --- diagnostics/collect-networking-logs.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/diagnostics/collect-networking-logs.ps1 b/diagnostics/collect-networking-logs.ps1 index 41de9f7..af4bb6e 100644 --- a/diagnostics/collect-networking-logs.ps1 +++ b/diagnostics/collect-networking-logs.ps1 @@ -255,6 +255,14 @@ try } catch {} +# Collect the old Tcpip6 registry values - as they can break WSL if DisabledComponents is set to 0xff +# see https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-ipv6-in-windows +try +{ + Get-Item HKLM:SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters | Out-File -FilePath "$folder/tcpip6_parameters.log" -Append +} +catch {} + # Collect the setup and NetSetup log files $netSetupPath = "$env:WINDIR/logs/netsetup" if (Test-Path $netSetupPath)