Skip to content

Commit 8c6dd56

Browse files
author
Catalin-Emil Fetoiu
committed
merge commands
1 parent 887abdf commit 8c6dd56

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

diagnostics/collect-networking-logs.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ if (Test-Path $wslconfig)
3030
if ($RestartWslReproMode)
3131
{
3232
# 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
3635

3736
# Stop WSL.
3837
net.exe stop WslService

0 commit comments

Comments
 (0)