Merge pull request #11932 from microsoft/user/cfetoiu/get_udp_listeners

Collect Get-NetUdpEndpoint in networking script to help with SharedAccess DNS proxy failing to start issues
This commit is contained in:
Cătălin Emil Fetoiu 2024-08-19 11:47:50 -07:00 committed by GitHub
commit c5ffe6e409
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,6 +113,12 @@ function Collect-WindowsNetworkState {
Get-VMSwitch | select Name,Id,SwitchType | Out-File -FilePath "$folder/Get-VMSwitch_$ReproStep.log" -Append
}
catch {}
try
{
Get-NetUdpEndpoint | Out-File -FilePath "$folder/Get-NetUdpEndpoint_$ReproStep.log" -Append
}
catch {}
}
$folder = "WslNetworkingLogs-" + (Get-Date -Format "yyyy-MM-dd_HH-mm-ss")