merge commands

Catalin-Emil Fetoiu committed Jan 12, 2024 at 15:16 UTC 8c6dd56249510bfef0d840ae3f25c3b06ccfd2a2
1 file changed +2 -3
diagnostics/collect-networking-logs.ps1
+2 -3
@@ -30,9 +30,8 @@ if (Test-Path $wslconfig)
30 if ($RestartWslReproMode)
31 {
32 # The WSL HNS network is created once per boot. Resetting it to collect network creation logs.
33 - # Note: The below HNS commands apply only to WSL in NAT mode
34 - Get-HnsNetwork | Where-Object {$_.Name -eq 'WSL'} | Remove-HnsNetwork
35 - Get-HnsNetwork | Where-Object {$_.Name -eq 'WSL (Hyper-V firewall)'} | Remove-HnsNetwork
33 + # Note: The below HNS command applies only to WSL in NAT mode
34 + Get-HnsNetwork | Where-Object {$_.Name -eq 'WSL' -Or $_.Name -eq 'WSL (Hyper-V firewall)'} | Remove-HnsNetwork
35
36 # Stop WSL.
37 net.exe stop WslService