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

Keith Horton committed Apr 5, 2024 at 14:36 UTC 874178562cea8683cc0fd75b938bd24f0a109be8
1 file changed +8
diagnostics/collect-networking-logs.ps1
+8
@@ -255,6 +255,14 @@ try
255 }
256 catch {}
257
258 +# Collect the old Tcpip6 registry values - as they can break WSL if DisabledComponents is set to 0xff
259 +# see https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-ipv6-in-windows
260 +try
261 +{
262 + Get-Item HKLM:SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters | Out-File -FilePath "$folder/tcpip6_parameters.log" -Append
263 +}
264 +catch {}
265 +
266 # Collect the setup and NetSetup log files
267 $netSetupPath = "$env:WINDIR/logs/netsetup"
268 if (Test-Path $netSetupPath)