collect get-vmswitch

Catalin-Emil Fetoiu committed May 16, 2024 at 13:19 UTC 0ab4bfe5b68fafbd54d90721eac6142783bd84b8
1 file changed +6
diagnostics/collect-networking-logs.ps1
+6
@@ -107,6 +107,12 @@ function Collect-WindowsNetworkState {
107 & vfpctrl.exe /list-vmswitch-port 2>&1 > $folder/vfpctrl_list_vmswitch_port_"$ReproStep".log
108 }
109 catch {}
110 +
111 + try
112 + {
113 + Get-VMSwitch | select Name,Id,SwitchType | Out-File -FilePath "$folder/Get-VMSwitch_$ReproStep.log" -Append
114 + }
115 + catch {}
116 }
117
118 $folder = "WslNetworkingLogs-" + (Get-Date -Format "yyyy-MM-dd_HH-mm-ss")