FInd nic speed/duplex (Win32)

logistix logistix at
Fri Apr 18 23:27:20 CEST 2003

> -----Original Message-----
> From: python-list-admin at 
> [mailto:python-list-admin at] On Behalf Of Peter Hansen
> Sent: Thursday, April 17, 2003 1:04 PM
> To: python-list at
> Subject: Re: FInd nic speed/duplex (Win32)
> j2 wrote:
> > 
> > Is there any sample code to be able to find NIC settings (speed and 
> > duplex) for a NIC in a Win98 system?
> You could look in the registry, or there might be some Win32 
> call. Either way, the bulk of the answer is Windows-specific 
> and could be found by searching with Google, probably.  After 
> you have the answer in "Windows-speak", post the APIs 
> required, or the names of the registry keys required, and 
> someone can post example code.

Actually, the exact registry entry will be vendor specific, so don't try
to do that unless you know all the machines you're testing have the
exact same hardware.  In general, NIC cards are too low of a layer on
the OSI model for Windows itself to care about how it's working.  That's
left as an "implementation detail" for the vendor.

However, you might be able to make a good guess by scanning the text
returned by "os.popen('ipconfig /all')"

More information about the Python-list mailing list