@samitouri / QOSAMI-WSL / commits / 09a63d56

Add logic to capture the content of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinSock2 (#9298)

Blue committed Dec 12, 2022 at 20:18 UTC 09a63d56e6aedff7c8c88d7d7bfe0a7f9b63d61d
1 file changed +4 -3
diagnostics/collect-wsl-logs.ps1
+4 -3
@@ -22,9 +22,10 @@ if ($LogProfile -eq $null)
22 }
23 }
24
25 -reg.exe export HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss $folder/HKCU.reg
26 -reg.exe export HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Lxss $folder/HKLM.reg
27 -reg.exe export HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\P9NP $folder/P9NP.reg
25 +reg.exe export HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss $folder/HKCU.txt
26 +reg.exe export HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Lxss $folder/HKLM.txt
27 +reg.exe export HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\P9NP $folder/P9NP.txt
28 +reg.exe export HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinSock2 $folder/Winsock2.txt
29
30 $wslconfig = "$env:USERPROFILE/.wslconfig"
31 if (Test-Path $wslconfig)