posted 05/08/09

How to get MAC Addresses from remote computers

By Fredrik Wall

When working with installation systems or other Network systems
you often need your users MAC Address.

You can ask the users to start cmd.exe and then do a ipconfig.exe /all.
If you have 100-5000 users this can be a whole year of work :)

Or you can open up powershell and use this little script:


 
$strComputer = "."

$colItems = get-wmiobject -class "Win32_NetworkAdapterConfiguration" -computername $strComputer |Where{$_.IpEnabled -Match "True"}

foreach ($objItem in $colItems) {

$objItem |select Description,MACAddress

}

Combine this script with a Active Directory script that will show all of your

computers and then Export it to a csv file and you have a good import file!

 

Related posts:

  1. How to list all XP computers
  2. Get MAC Address (The GUI version)
  3. Look at remote event log
  4. Lab AD with 5000 users
  5. Information handling for AD


Comments
walle75 (Fredrik Wall) August 5th, 2009 (2:07 pm)
comment

New blog post about getting MAC Addresses from remote computers, http://tinyurl.com/nqo8j9

Fredrik Wall WordPress v1.1.3 August 5th, 2009 (2:07 pm)
comment

New blog post about getting MAC Addresses from remote computers, http://tinyurl.com/nqo8j9

Shay Levy ISRAEL Windows Vista Internet Explorer 7.0 August 5th, 2009 (3:34 pm)
comment

Here’s another way using server side query:

Get-WMIObject Win32_NetworkAdapterConfiguration -computerName $strComputer -filter “IPEnabled=’True’” | select __SERVER,Description,MACAddress

Add Comment

Name (Required)

E-mail (Required)

Website

Comment (Required)