@samitouri / QOSAMI-WSL / commits / 85fc1379

Add Windows feature list to networking.bat (#7078)

Blue committed Jul 21, 2021 at 16:49 UTC 85fc13796c5a85d327f23e431dffe054073cd036
1 file changed +4
diagnostics/networking.bat
+4
@@ -8,6 +8,10 @@ net session >nul 2>&1 || goto :admin
8 if not exist wsl_networking.wprp (echo wsl_networking.wprp not found && exit /b 1)
9 if not exist networking.sh (echo networking.sh not found && exit /b 1)
10
11 +:: List installed Windows features
12 +echo Windows features:
13 +powershell.exe -NoProfile "Get-WindowsOptionalFeature -Online | ? State -eq Enabled | select FeatureName"
14 +
15 :: List all HNS objects
16 echo HNS objects:
17 hnsdiag list all -df