- @echo off
- for /f "delims=" %%i in ('powershell -c "Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Network\*\*\Connection" -ErrorAction SilentlyContinue | Where-Object {$_.MediaSubType -eq 2} | Select-Object -Property Name"') do (
- set str=%%i
- )
- echo,%str%
- pause
复制代码
|