How do I locate the MAC address of my computer?
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Darkness Approaches Looping
--
Chapters
00:00 Question
00:34 Accepted answer (Score 113)
02:26 Answer 2 (Score 41)
02:47 Answer 3 (Score 28)
03:13 Answer 4 (Score 8)
03:33 Thank you
--
Full question
https://superuser.com/questions/66988/ho...
Question links:
[MAC address]: http://en.wikipedia.org/wiki/MAC_address
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows7 #windows #commandline #macaddress
#avk47
ACCEPTED ANSWER
Score 114
You have probably typed that into the Start Menu search dialog, which does execute the command but doesn't show it as the command prompt window disappears as soon as the command has been executed. This is the normal bahavior of command prompt applications, they close as soon as it is done.
In order for the command prompt to stay, you have to run those commands through the command prompt. The command prompt doesn't disappear after execution of a program; so, you can see the output as a result.
Click the Start Button or press the Windows key.
In the start menu search, type
cmd
.Hit Enter to execute the command prompt, or click on the
cmd
entry that appears.Type in
ipconfig /all
orgetmac
and it should execute both commands and the window will remain open such that you can see the output.
Note:
getmac
is great for just mac addresses ipconfig
is good for ip addresses and ipconfig /all
is great for IP address and a lot of other useless info (like unused connections)
to use getmac
- type
cmd
in the search box and press enter or run window (windows logo + r) - then type
getmac
(no ipconfig necessary, in fact that wont work) and let it run (it may take a few seconds to rertrieve the info)
if you use ipconfig
and ipconfig
dose not have enough info use ipconfig /all
ANSWER 2
Score 42
A simple way to get the MAC address(es) of your network adapter(s):
On a command prompt type
getmac
Example:
ANSWER 3
Score 28
For Windows Vista and Windows 7, in the control panel:
Open the Network and Sharing Center > Local Area Connection > Details > Physical Address.
ANSWER 4
Score 8
You can also locate the MAC address using VBScript:
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select MACAddress from Win32_NetworkAdapter where DeviceID=1")
For Each objItem in colItems
Wscript.Echo "MAC Address: " & objItem.MACAddress
Next