|I am trying to write a .bat file that will get the mac address and make it the computer description. So far I have tried using a variable to capture the command getmac (set mac=getmac) as a variable and then use the command (net config server /srvcomment:%mac%) but it then sets the computer description as getmac. However, if I export the (set mac=getmac > mac.txt) the mac.txt file includes the MAC address that I want to put in the computer description. Also i'm getting a similar response like:|
Physical Address Transport Name
I've also tried using this forum to figure something out, but i'm stuck...http://www.pcreview.co.uk/forums/get-mac-address-command-line-batch-file-vista-t3432182.html
and I would like to somehow just get B8-AC-6F-21-44-14 and set it as the computer description. If anyone can pull this off.... THEY ARE THE MAN TO ME! lol thanks!