1.

Solve : mac add in pure dos?

Answer»

I WONDER IF ANY ONE CAN HELP… AT THE MOMENT I AM USING GHOST SERVER TO INSTALL 3 DIFFEENT TPYES OF LAPTOP.. ORIGINALLY W MADE A LIST OF THE SERIAL NUMBERS OF EACH LAPTOP AND THEN LINKED EACH SERIAL NUMBER TO ONE OF THE THREE TYPES OF LAPTOP SO GHOST WOULD NO WHICH IMAGE TO SEND TO INDIVDUAL MACINES.. THIS WENT FINE UNTIL WE HAD A REPARED LAPTOP IN WHICH HAD THE SERIA LNUMBER BLANKED OUT IN DOS……………. NOW THIS IS WERE I AM STUCK WE WON’T TO BE ABLE TO CPATURE THE MAC ADRESS IN PURE DOS BUT NOT SURE HOW TO DO THIS DOES ANY ONE KNOW THE SINTAX TO OBTIAN THE MAC ADD IN PURE DOS… @echo off
for /f "tokens=12 delims= " %%a in ('ipconfig /all ^| find /i "physical address"') do set mac=%%a
echo %mac%
pause

that will get the mac on the computer you run it on but if you need to get the mac for a remote computer I have a script for that to just tell me if YO want it. Quote

Quote
@echo off
for /f "tokens=12 delims= " %%a in ('ipconfig /all ^| find /i "physical address"') do set mac=%%a
echo %mac%
pause



For /f is not working in pure dos. (Until M$-Dos 7.1. - I don`t know the new Free Dos etc.)

To get the Mac Adress from a remote computer you can use the getmac COMMAND from the RESSOURCE kit.

uli


Discussion

No Comment Found