| |
| | |
| Join The Cult | Tweakers | Image Gallery | Donate | Search | Today's Posts | Mark Forums Read | |
Welcome to Tweak3DThis is an open forum about hardware and tech stuff. Sign-up here to join the discussion. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | Finding A MAC address...the lazy way... | permalink #1 |
| Uber Noob | 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..... | |
| | ||
| | | |
| | #2 |
| | |
| | |
| | permalink #2 | |
| Lord Of Porn | 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 | ||
| | | |
| | permalink #3 | |
| P/T State Worker | Or an easier way is just to type ipconfig /all in the run command | |
| Learn something | ||
| | | |
| | permalink #4 | |
| Some Random Person | for linux distros use ifconfig | |
| | | |
| | permalink #5 | ||
| Member | Quote:
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. | ||
| | | ||
| | permalink #6 | |
| El Chupacabra | 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 | ||
| | | |
| | permalink #7 | ||
| P/T State Worker | Quote:
| ||
| | | ||
| | permalink #8 | ||
| P/T State Worker | Quote:
| ||
| | | ||
| | permalink #9 | ||
| Tweak Minion | Quote:
| ||
| | | ||
| | permalink #10 | |
| Vagina Friendly Mayor | 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!? | ||
| | | |
| | permalink #11 | |
| Uber Noob | Cool - Thanks..... I like the extra info too! Spot On! | |
| | | |
| | permalink #12 | ||
| El Chupacabra | Quote:
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 | ||
| | | ||
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |