Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7932145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:55:46+00:00 2026-06-03T20:55:46+00:00

I am thinking about using the wired MAC-adr as a unique value in a

  • 0

I am thinking about using the wired MAC-adr as a unique value in a program. So i need to be sure the MAC-adr is the wired one and NOT the wireless.

$mac = gwmi -computer $compname win32_NetworkAdapterConfiguration | select MACAddress

This is what I started with, but it gives me two addresses.
First one is the one I want: 00:00:11:11:22:22
The last one is the wireless address: 00:1F:3C:8E:61:D8

I can’t just sort like: select -first 1. Because I don’t know what this will get me on other computers..
And btw, this DOES work on ipV6 as well as ipV4?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T20:55:49+00:00Added an answer on June 3, 2026 at 8:55 pm

    Try this way:

    $mac = gwmi -computer $compname win32_NetworkAdapter | ? { $_.AdapterType -match "802.3" } |  select MACAddress
    

    If there’s more than one you need to do a selection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create a user configurable web spider/crawler, and I'm thinking about using
I'm already thinking about to start using simple GET string. Or I'm not so
I've been thinking about using shared pointers, and I know how to implement one
I just started thinking about using the NHibernate second level cache in one of
I'm thinking about using something like: <script src=http://www.example.com/?key={param:value}> As you can see in the
I'm thinking about using log4net in a MOSS(SharePoint) 2007 project, but I need to
I'm thinking about using WSAAsyncSelect in a server. But then I need a window
We are thinking about using an XPORT serial to ethernet adapter for one of
I'm thinking about using the java application object to implement a simple cache, to
I am thinking about using Gears in a project, but I have doubts about

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.