Search:
Namespaces
Discussions
.NET v1.1
Feedback
Obtaining the NIC number from a PC
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.general
.
Post a new message to this list...
Tim Marsden
Using VB.NET How do I obtain the NIC number of a particular PC or Server.
(By NIC I am refering to the unique network card ID)
Thanks
Tim
Reply to this message...
Raghavendra T V
Hi Tim,
Check this link.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_motherboarddevice.asp
You need to use WMI to use this.
Hope this helps you.
Thanks
Raghavendra
"Tim Marsden" <
Click here to reveal e-mail address
> wrote in message
news:
Click here to reveal e-mail address
...
[Original message clipped]
Reply to this message...
Tim Marsden
Raghavendra
Many thanks for your swift reply,
Have you any code examples of the API in use ?
Regards
Tim
"Raghavendra T V" <
Click here to reveal e-mail address
> wrote in message
news:
Click here to reveal e-mail address
...
[Original message clipped]
Reply to this message...
Shiva
Hi,
Check this one out:
-- Code Start --
Dim mc As
ManagementClass
= New
ManagementClass
("Win32_NetworkAdapterConfiguration")
Dim moc As
ManagementObjectCollection
= mc.GetInstances()
For Each mo As
ManagementObject
in moc
If (CType(mo("IPEnabled"), Boolean)) Then
Console
.WriteLine
(mo("MacAddress").ToString())
Next
moc.Dispose()
mc.Dispose()
-- Code End --
"Tim Marsden" <
Click here to reveal e-mail address
> wrote in message
news:
Click here to reveal e-mail address
...
Using VB.NET How do I obtain the NIC number of a particular PC or Server.
(By NIC I am refering to the unique network card ID)
Thanks
Tim
Reply to this message...
Tim Marsden
Thanks All
"Shiva" <
Click here to reveal e-mail address
> wrote in message
news:
Click here to reveal e-mail address
...
[Original message clipped]
Reply to this message...
Tim Marsden
Thanks
I have resolved this issue using the System.Management functionality
suggested.
Tim
"Tim Marsden" <
Click here to reveal e-mail address
> wrote in message
news:%
Click here to reveal e-mail address
...
[Original message clipped]
Reply to this message...
System.Console
System.Management.ManagementClass
System.Management.ManagementObject
System.Management.ManagementObjectCollection
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com