Windows 10

Batch File To Get MAC Address

In this tutorial, we are going to see how to get the MAC address by using Find command. The batch file contains a series of DOS (Disk Operating System) instructions. It allows triggering the execution of commands found in this file.
 

Batch File To Get MAC Address

The following example find the Physical Address(MAC):

@echo off

ipconfig /all | find "Physical Address" /i

Output:

Physical Address. . . . . . . . . : 9A-16-12-49-3E-62

Leave a Reply

Your email address will not be published. Required fields are marked *