-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-System.Nethelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorsin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is mergedos-windows
Milestone
Description
Description
On Windows, a disabled network adapter is not listed by NetworkInterface.GetAllNetworkInterfaces()
.
Reproduction Steps
-
foreach (var ni in System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()) { Console.WriteLine(ni.Name + ": " + ni.OperationalStatus); }
- Disable a network adapter.
- Run the code again.
Expected behavior
The disabled adapter is listed with OperationalStatus.Down
.
Actual behavior
The disabled adapter is not listed.
Regression?
No response
Known Workarounds
No response
Configuration
Windows 10
.NET 6 / .NET 7
Other information
No response
avin3sh
Metadata
Metadata
Assignees
Labels
area-System.Nethelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorsin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is mergedos-windows