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
or getmac
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
3+1. I was not aware about this one. I always use ipconfig /all, but this is a lot easier. – JordyOnrust – 2010-02-21T21:59:19.047
1I think that the ethernet address will typically be first, and the wifi address will typically be second. – Clinton Blackmore – 2010-09-01T21:35:26.880
15Also, if you use
getmac /v
then it will show the name of the adapter and the connection state. Much easier if you have multiple network adapters, especially if you have some virtual ones from virtual machine software. – TuxRug – 2010-10-10T23:40:07.987Does it work for interfaces that aren't connected? For some reason (or unreason ;-p),
ipconfig
never shows me the MACs of interfaces that are not connected. This may be the solution I'm looking for. – James Haigh – 2013-06-19T19:46:05.447