Re: Getting MAC Address

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thanks for you help. I acutally used IPEnabled to filter. Seems to work.

Michael


"Phil Wilson" <pdjwilson@xxxxxxxxxxxxxx> wrote in message
news:edEzaK0zFHA.1252@xxxxxxxxxxxxxxxxxxxxxxx
>I suggest you look at some of the other attributes to filter out what you
>want, such as AdappterType. You're seeing all the network providers
>available. What you want is something like a NetConnectionID value of
>"Local Area Cionnection".
> --
> Phil Wilson
> [Microsoft MVP-Windows Installer]
>
> "Michael Jackson" <michaeldjackson@xxxxxxx> wrote in message
> news:FlV2f.9345$417.1763@xxxxxxxxxxxxx
>> I'm using the following code to get the MAC Address from the PC. The
>> actual MAC Address of the PC is 8th and 9th in the list (following the
>> code). How do I get just the MAC Address I need? Why are there so many
>> entries?
>>
>>
>> Dim objManagementClass As New ManagementClass(New
>> ManagementPath("Win32_NetworkAdapter"))
>>
>> Dim colManagementObjects As ManagementObjectCollection =
>> objManagementClass.GetInstances
>>
>> For Each objMO As ManagementObject In colManagementObjects
>>
>> Me.lstGeneric.Items.Add(IIf(IsNothing(objMO("MACAddress")), "Nothing",
>> objMO("MACAddress")))
>>
>> Next
>>
>> Output from the code is:
>>
>> Nothing
>> 20:41:53:59:4E:FF
>> Nothing
>> 50:50:54:50:30:30
>> 33:50:6F:45:30:30
>> Nothing
>> Nothing
>> 00:0D:61:26:94:C8
>> 00:0D:61:26:94:C8
>> 62:FF:20:52:41:53
>> Nothing
>>
>> Thanks,
>> Michael
>>
>
>


.



Relevant Pages

  • Re: Mit "Kategorien" Outllook Adressen filtern / suchen
    ... > Hallo Michael, ... >>> Ansicht definieren, die einen Filter nach ... Prev by Date: ... Next by Date: ...
    (microsoft.public.de.outlook)
  • Re: Filter und Ansichten =?ISO-8859-1?Q?=FCbertragen?=
    ... den 26 Mai 2005 schrieb Michael Heydekamp: ... >> wie kann man in einer Exchange-Umgebung Filterregeln und Ansichten ... Nachrichten", "Gesendet an" usw.) die jeweiligen Einstellungen ... daß ein Filter für eingehende Nachrichten automatisch auf den ...
    (microsoft.public.de.outlook)
  • RE: Drill Through Problems caused by multiple selected values
    ... you can drillthrough just one cell at a time. ... "Michael G. Schneider" wrote: ... filter, drillthrough is not possible. ...
    (microsoft.public.sqlserver.olap)
  • Re: Realname
    ... Welches Usenet meinst du? ... Mein Eindruck ist auch, dass pseudonyme Teilnehmer immer ... Michael, was interessieren mich anderer Leute Filter? ...
    (de.soc.netzkultur.umgangsformen)
  • WM6 user process
    ... how to filter out only processes that are running ... In full .NET i would use ManagementObjectCollection and ... So the result would look like if you open task manager on you phone, ...
    (microsoft.public.dotnet.framework.compactframework)