We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 887abdf commit 8c6dd56Copy full SHA for 8c6dd56
1 file changed
diagnostics/collect-networking-logs.ps1
@@ -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
+ # Note: The below HNS command applies only to WSL in NAT mode
+ Get-HnsNetwork | Where-Object {$_.Name -eq 'WSL' -Or $_.Name -eq 'WSL (Hyper-V firewall)'} | Remove-HnsNetwork
36
37
# Stop WSL.
38
net.exe stop WslService
0 commit comments