(view source code of login_log_ip_mac_simple.bat as plain text)
FOR /F "tokens=1,2 delims=:" %%A IN ('IPCONFIG /ALL ^| FIND "Address"') DO (
FOR /F "tokens=1,2" %%C IN ("%%~A") DO (
FOR %%E IN (%%~B) DO SET %%C%%D=%%E
)
>> \\Server\Logs\%Today%\%UserName%.log ECHO.%IPAddress%,%PhysicalAddress:-=%
page last modified: 2024-04-16; loaded in 0.0048 seconds