Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am creating a network boot cd and need to get the MAC address of the NIC card. This will be used as the computer name on the network. I have tried ipconfig /all and it works in a windows environment. I need a utility that will get or display the MAC address of the NIC in DOS, not in a DOS terminal window. Any ideas would be helpful.

Sorry I don't know of any utilities, but if it helps you can always set it to something that you do know.
Here is how.
Edit your protocol.ini file and in the section for the nic card add the line
netaddress = "00001111abcd"
or if it is all numbers
netaddress = 0x000011112222Ex.
[NIC]
drivername=EL556$
netaddress="0000864c0000"I assume you want to do this for installing a whole bunch of machines. In this case it would require you to know the MAC address before hand.
If this is the case you could try to do a post process command after the OS is installed and use the newer utilites to get the address and then change the name.

Im trying to do the same thing... this is what I've come up with so far...
@echo off
ipconfig /all | Find /i "physical">mac.txt
for /f "tokens=1* delims=Physical " %%1 in (mac.txt) do @echo %%2>mac.txt
for /f "tokens=1* delims=Address " %%1 in (mac.txt) do @echo %%2>mac.txt
for /f "tokens=1* delims=. " %%1 in (mac.txt) do @echo %%2>mac.txt
type mac.txt

![]() |
Dos Machine : Nyb virus
|
how to set the path for e...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |