From 7e112b055200292745199214fb47df8a82ffacd4 Mon Sep 17 00:00:00 2001 From: Pavel Valach Date: Mon, 7 Oct 2024 23:07:35 +0200 Subject: [PATCH] Fixing "get MAC address" to include wireless interfaces With Wi-Fi adapters, they often do not show as physical adapters, hence that needs to be turned off. Instead, I add a caption to better identify Wi-Fi and Gigabit Ethernet. --- sin-setup.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sin-setup.bat b/sin-setup.bat index 43b11a4..d081c34 100644 --- a/sin-setup.bat +++ b/sin-setup.bat @@ -191,7 +191,7 @@ goto main :print_mac cls -wmic nic where 'NOT Manufacturer like "%%Microsoft%%" and PhysicalAdapter=TRUE and NOT Manufacturer like "%%Windows%%"' get Manufacturer,MACAddress,NetConnectionID 2>nul +wmic nic where 'NOT Manufacturer like "%%Microsoft%%" and NOT Manufacturer like "%%Windows%%"' get MACAddress,Caption,NetConnectionID 2>nul IF NOT %ERRORLEVEL% EQU 0 ( getmac /v 2>nul IF NOT %ERRORLEVEL% EQU 0 (