Tweak3D.Net
Save?
Not Registered Yet? Go here.
Join The Cult Tweakers Image Gallery Donate Search Today's Posts Mark Forums Read

Welcome to Tweak3D

This is an open forum about hardware and tech stuff. Sign-up here to join the discussion.

Reply
 
LinkBack Thread Tools Display Modes
Old 03-26-2008, 08:28 PM Finding A MAC address...the lazy way...   permalink #1
MovingTarget's Avatar
MovingTarget
Uber Noob
 
Jul 2005
Last Seen: Today
Location: Phoenix, AZ
Posts: 1,256 (#71)
Thanked 1x in one post

Is there an easy way to get a MAC ID without opening up the PC to get it?....

I'd rather not pop the case right now.....



I am me, and nobody else can be me, except for myself or I, but neither of them are here right now so leave a message.....

MovingTarget is online now   Reply With Quote
Yesterday, 05:30 PM   #2
 
 


Google is online (hide)  
Old 03-26-2008, 08:40 PM   permalink #2
Mr. Ali's Avatar
Mr. Ali
Lord Of Porn
 
Jan 2005
Last Seen: Today
Location: CA, USA
Posts: 3,130 (#22)
Thanked 1x in one post

start > run
type cmd
in the command prompt type:
ipconfig /all

MAC Address is listed under Physical address

"As a Ford owner, trust me when I say, you will never regret anything more in your life than buying a Ford over a Toyota."
- Dan T3D
Mr. Ali is offline   Reply With Quote
Old 03-26-2008, 08:49 PM   permalink #3
gB dAvId x's Avatar
gB dAvId x
P/T State Worker
 
Jan 2005
Last Seen: Today
Location: sacramento, california
Posts: 2,686 (#30)
Thanked 0x in 0 posts

Or an easier way is just to type ipconfig /all in the run command same thing though just easier

Learn something
gB dAvId x is online now   Reply With Quote
Old 03-26-2008, 09:19 PM   permalink #4
msgwtco's Avatar
msgwtco
Some Random Person
 
Jan 2005
Last Seen: Today
Location: Waterbury,CT
Posts: 570 (#111)
Thanked 0x in 0 posts

for linux distros use ifconfig
msgwtco is offline   Reply With Quote
Old 03-27-2008, 11:40 AM   permalink #5
Zenjiro's Avatar
Zenjiro
Member
 
Jan 2008
Last Seen: 05-04-2008
Location: Behind you
Posts: 43 (#186Zenjiro was ranked #189 last month)
Thanked 1x in one post

Quote:
Originally Posted by gB dAvId x View Post
Or an easier way is just to type ipconfig /all in the run command same thing though just easier
Minor problem with that, by default when the program has completed running command prompt will close, and frankly on most modern computers ipconfig (unless your renewing the DHCP lease) takes less time to run as it takes for the window's animations to appear and close. (In other words you see a little black window fade in and out of existence).

If your running OSX it can be found in the network config menu

Also, if you know the IP address and are using a router you can get it from the DHCP client table or from the routing tables if using static IP addresses, but this might be more Goldbergian than popping the case.

Btw, almost every OS allows you to change the MAC address of a NIC so checking the sticker isn't the best plan anyway, hell as I recall I had a NIC once that the MAC changed with a driver update.
Zenjiro is offline   Reply With Quote
Old 03-27-2008, 11:52 AM   permalink #6
j0k3r's Avatar
j0k3r
El Chupacabra
 
Jan 2005
Last Seen: Today
Location: Phoenix
Posts: 1,841 (#44)
Thanked 14x in 7 posts

hudsmack's 

Gamercard

LOL, since we're being verbose, you can execute a WMI query in your favorite code to get a MAC address as well.

Anyone up for a coding tutorial, I could write one up showing you how to execute a WMI query in C# per se?

SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True

Earn your keep.
Ron Paul 2008
j0k3r is online now   Reply With Quote
Old 03-27-2008, 12:07 PM   permalink #7
gB dAvId x's Avatar
gB dAvId x
P/T State Worker
 
Jan 2005
Last Seen: Today
Location: sacramento, california
Posts: 2,686 (#30)
Thanked 0x in 0 posts

Quote:
Originally Posted by j0k3r View Post
LOL, since we're being verbose, you can execute a WMI query in your favorite code to get a MAC address as well.

Anyone up for a coding tutorial, I could write one up showing you how to execute a WMI query in C# per se?

SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True
That looks to much like a sql query
gB dAvId x is online now   Reply With Quote
Old 03-27-2008, 12:10 PM   permalink #8
gB dAvId x's Avatar
gB dAvId x
P/T State Worker
 
Jan 2005
Last Seen: Today
Location: sacramento, california
Posts: 2,686 (#30)
Thanked 0x in 0 posts

Quote:
Originally Posted by Zenjiro View Post
Minor problem with that, by default when the program has completed running command prompt will close, and frankly on most modern computers ipconfig (unless your renewing the DHCP lease) takes less time to run as it takes for the window's animations to appear and close. (In other words you see a little black window fade in and out of existence).
Damn you suck, your right I just thought of it in my head since the last thing I tried to run in cmd worked when i typed it in the run command
gB dAvId x is online now   Reply With Quote
Old 03-27-2008, 04:14 PM   permalink #9
ThatHideousStrength
Tweak Minion
 
Jan 2005
Last Seen: Today
Posts: 4,104 (#11)
Thanked 5x in 4 posts

Quote:
Originally Posted by j0k3r View Post
LOL, since we're being verbose, you can execute a WMI query in your favorite code to get a MAC address as well.

Anyone up for a coding tutorial, I could write one up showing you how to execute a WMI query in C# per se?

SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True
Is that true lol. I figured you can code a solution but I never knew it could be done using a query.
ThatHideousStrength is offline   Reply With Quote
Old 03-27-2008, 04:21 PM   permalink #10
SoulAssassin's Avatar
SoulAssassin
Vagina Friendly Mayor
 
Jan 2005
Last Seen: Today
Location: Cincinnati, OH
Posts: 2,932 (#26)
Thanked 1x in one post

bu7ch33's 

Gamercard

Quote:
Originally Posted by ThatHideousStrength View Post
Is that true lol. I figured you can code a solution but I never knew it could be done using a query.
I'm pretty sure that WMI is a repository of objects and you can query based on those objects. I'm no programmer so I'm not 100% sure but I did stay in a Holiday Inn last night.

Who wants to sex Mutombo!?
SoulAssassin is offline   Reply With Quote
Old 03-27-2008, 08:00 PM   permalink #11
MovingTarget's Avatar
MovingTarget
Uber Noob
 
Jul 2005
Last Seen: Today
Location: Phoenix, AZ
Posts: 1,256 (#71)
Thanked 1x in one post

Cool - Thanks..... I like the extra info too!

Spot On!
MovingTarget is online now   Reply With Quote
Old 03-27-2008, 09:19 PM   permalink #12
j0k3r's Avatar
j0k3r
El Chupacabra
 
Jan 2005
Last Seen: Today
Location: Phoenix
Posts: 1,841 (#44)
Thanked 14x in 7 posts

hudsmack's 

Gamercard

Quote:
Originally Posted by ThatHideousStrength View Post
Is that true lol. I figured you can code a solution but I never knew it could be done using a query.
Windows Management Instrumentation - Wikipedia, the free encyclopedia

Run this vbscript:
Code:
On Error Resume Next

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colItems = objWMIService.ExecQuery("Select * from Win32_NetworkAdapter")

For Each objItem in colItems
    Wscript.Echo "Adapter Type: " & objItem.AdapterType
 
    Select Case objItem.AdapterTypeID
        Case 0 strAdapterType = "Ethernet 802.3" 
        Case 1 strAdapterType = "Token Ring 802.5" 
        Case 2 strAdapterType = "Fiber Distributed Data Interface (FDDI)" 
        Case 3 strAdapterType = "Wide Area Network (WAN)" 
        Case 4 strAdapterType = "LocalTalk" 
        Case 5 strAdapterType = "Ethernet using DIX header format" 
        Case 6 strAdapterType = "ARCNET" 
        Case 7 strAdapterType = "ARCNET (878.2)" 
        Case 8 strAdapterType = "ATM" 
        Case 9 strAdapterType = "Wireless" 
        Case 10 strAdapterType = "Infrared Wireless" 
        Case 11 strAdapterType = "Bpc" 
        Case 12 strAdapterType = "CoWan" 
        Case 13 strAdapterType = "1394"
    End Select
 
    Wscript.Echo "Adapter Type Id: " & strAdapterType
    Wscript.Echo "AutoSense: " & objItem.AutoSense
    Wscript.Echo "Description: " & objItem.Description
    Wscript.Echo "Device ID: " & objItem.DeviceID
    Wscript.Echo "Index: " & objItem.Index
    Wscript.Echo "MAC Address: " & objItem.MACAddress
    Wscript.Echo "Manufacturer: " & objItem.Manufacturer
    Wscript.Echo "Maximum Number Controlled: " & objItem.MaxNumberControlled
    Wscript.Echo "Maximum Speed: " & objItem.MaxSpeed
    Wscript.Echo "Name: " & objItem.Name
    Wscript.Echo "Net Connection ID: " & objItem.NetConnectionID
    Wscript.Echo "Net Connection Status: " & objItem.NetConnectionStatus
    For Each strNetworkAddress in objItem.NetworkAddresses
        Wscript.Echo "NetworkAddress: " & strNetworkAddress
    Next
    Wscript.Echo "Permanent Address: " & objItem.PermanentAddress
    Wscript.Echo "PNP Device ID: " & objItem.PNPDeviceID
    Wscript.Echo "Product Name: " & objItem.ProductName
    Wscript.Echo "Service Name: " & objItem.ServiceName
    Wscript.Echo "Speed: " & objItem.Speed
Next
j0k3r is online now   Reply With Quote
Reply

Login to reply. Sign-up here.


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Address question nidex Off-Topic 1 11-03-2006 12:17 PM
Ahh being lazy = nice. nidex Off-Topic 12 07-31-2006 05:30 AM
Video Games Fix Lazy Eye tweakmonkey Status and Feedback 1 03-28-2006 07:46 PM
Lazy Master HD Installation mutantstar Tech 6 01-18-2006 08:59 AM
Changing a static IP address pudz Tech 5 11-24-2005 02:17 PM


All times are GMT -7. The time now is 02:08 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0
©Tweak3D.Net 1998-2008Ad Management by RedTyger