Network Adapter

The Win32_NetworkAdapter class has these properties.

AdapterType
Data type: string
Access type: Read-only

Network medium in use. The network adapters are as follows:

Ethernet 802.3 ("Ethernet 802.3")

Token Ring 802.5 ("Token Ring 802.5")

Fiber Distributed Data Interface (FDDI) ("Fiber Distributed Data Interface (FDDI)")

Wide Area Network (WAN) ("Wide Area Network (WAN)")

LocalTalk ("LocalTalk")

Ethernet using DIX header format ("Ethernet using DIX header format")

ARCNET ("ARCNET")

ARCNET (878.2) ("ARCNET (878.2)")

ATM ("ATM")

Wireless ("Wireless")

Infrared Wireless ("Infrared Wireless")

Bpc ("Bpc")

CoWan ("CoWan")

1394 ("1394")

AdapterTypeID
Data type: uint16
Access type: Read-only

Network medium in use. Returns the same information as the AdapterType property, except that the information is in the form of an integer.

Ethernet 802.3 (0)

Token Ring 802.5 (1)

Fiber Distributed Data Interface (FDDI) (2)

Wide Area Network (WAN) (3)

LocalTalk (4)

Ethernet using DIX header format (5)

ARCNET (6)

ARCNET (878.2) (7)

ATM (8)

Wireless (9)

Infrared Wireless (10)

Bpc (11)

CoWan (12)

1394 (13)

AutoSense
Data type: boolean
Access type: Read-only

If True, the network adapter can automatically determine the speed of the attached or network media.

This property has not been implemented yet. It returns a NULL value by default.

Availability
Data type: uint16
Access type: Read-only

Availability and status of the device.

Other (1)

Unknown (2)

Running/Full Power (3)

Running or Full Power

Warning (4)

In Test (5)

Not Applicable (6)

Power Off (7)

Off Line (8)

Off Duty (9)

Degraded (10)

Not Installed (11)

Install Error (12)

Power Save - Unknown (13)

The device is known to be in a power save state, but its exact status is unknown.

Power Save - Low Power Mode (14)

The device is in a power save state, but still functioning, and may exhibit degraded performance.

Power Save - Standby (15)

The device is not functioning, but could be brought to full power quickly.

Power Cycle (16)

Power Save - Warning (17)

The device is in a warning state, though also in a power save state.

Paused (18)

The device is paused.

Not Ready (19)

The device is not ready.

Not Configured (20)

The device is not configured.

Quiesced (21)

The device is quiet.

Caption
Data type: string
Access type: Read-only

Short description of the object—a one-line string.

ConfigManagerErrorCode
Data type: uint32
Access type: Read-only

Windows Configuration Manager error code.

This device is working properly. (0)

Device is working properly.

This device is not configured correctly. (1)

Device is not configured correctly.

Windows cannot load the driver for this device. (2)

The driver for this device might be corrupted, or your system may be running low on memory or other resources. (3)

Driver for this device might be corrupted, or the system may be low on memory or other resources.

This device is not working properly. One of its drivers or your registry might be corrupted. (4)

Device is not working properly. One of its drivers or the registry might be corrupted.

The driver for this device needs a resource that Windows cannot manage. (5)

Driver for the device requires a resource that Windows cannot manage.

The boot configuration for this device conflicts with other devices. (6)

Boot configuration for the device conflicts with other devices.

Cannot filter. (7)

The driver loader for the device is missing. (8)

Driver loader for the device is missing.

This device is not working properly because the controlling firmware is reporting the resources for the device incorrectly. (9)

Device is not working properly. The controlling firmware is incorrectly reporting the resources for the device.

This device cannot start. (10)

Device cannot start.

This device failed. (11)

Device failed.

This device cannot find enough free resources that it can use. (12)

Device cannot find enough free resources to use.

Windows cannot verify this device's resources. (13)

Windows cannot verify the device's resources.

This device cannot work properly until you restart your computer. (14)

Device cannot work properly until the computer is restarted.

This device is not working properly because there is probably a re-enumeration problem. (15)

Device is not working properly due to a possible re-enumeration problem.

Windows cannot identify all the resources this device uses. (16)

Windows cannot identify all of the resources that the device uses.

This device is asking for an unknown resource type. (17)

Device is requesting an unknown resource type.

Reinstall the drivers for this device. (18)

Device drivers must be reinstalled.

Failure using the VxD loader. (19)

Your registry might be corrupted. (20)

Registry might be corrupted.

System failure: Try changing the driver for this device. If that does not work, see your hardware documentation. Windows is removing this device. (21)

System failure. If changing the device driver is ineffective, see the hardware documentation. Windows is removing the device.

This device is disabled. (22)

Device is disabled.

System failure: Try changing the driver for this device. If that doesn't work, see your hardware documentation. (23)

System failure. If changing the device driver is ineffective, see the hardware documentation.

This device is not present, is not working properly, or does not have all its drivers installed. (24)

Device is not present, not working properly, or does not have all of its drivers installed.

Windows is still setting up this device. (25)

Windows is still setting up the device.

Windows is still setting up this device. (26)

Windows is still setting up the device.

This device does not have valid log configuration. (27)

Device does not have valid log configuration.

The drivers for this device are not installed. (28)

Device drivers are not installed.

This device is disabled because the firmware of the device did not give it the required resources. (29)

Device is disabled. The device firmware did not provide the required resources.

This device is using an Interrupt Request (IRQ) resource that another device is using. (30)

Device is using an IRQ resource that another device is using.

This device is not working properly because Windows cannot load the drivers required for this device. (31)

Device is not working properly. Windows cannot load the required device drivers.

ConfigManagerUserConfig
Data type: boolean
Access type: Read-only

If True, the device is using a user-defined configuration.

CreationClassName
Data type: string
Access type: Read-only

Name of the first concrete class to appear in the inheritance chain used in the creation of an instance. When used with the other key properties of the class, the property allows all instances of this class and its subclasses to be uniquely identified.

Description
Data type: string
Access type: Read-only

Description of the object.

DeviceID
Data type: string
Access type: Read-only

Unique identifier of the network adapter from other devices on the system.

ErrorCleared
Data type: boolean
Access type: Read-only

If True, the error reported in LastErrorCode is now cleared.

ErrorDescription
Data type: string
Access type: Read-only

More information about the error recorded in LastErrorCode, and information about any corrective actions that may be taken.

GUID
Data type: string
Access type: Read-only

Globally unique identifier for the connection.

Index
Data type: uint32
Access type: Read-only

Index number of the network adapter, stored in the system registry.

Example: 0

InstallDate
Data type: datetime
Access type: Read-only

Date and time the object was installed. This property does not need a value to indicate that the object is installed.

This property has not been implemented yet. It returns a NULL value by default.

Installed
Data type: boolean
Access type: Read-only

If True, the network adapter is installed in the system.

InterfaceIndex
Data type: uint32
Access type: Read-only

LastErrorCode
Data type: uint32
Access type: Read-only

Last error code reported by the logical device.

MACAddress
Data type: string
Access type: Read-only

Media access control address for this network adapter. A MAC address is a unique 48-bit number assigned to the network adapter by the manufacturer. It uniquely identifies this network adapter and is used for mapping TCP/IP network communications.

Manufacturer
Data type: string
Access type: Read-only

Name of the network adapter's manufacturer.

Example: "3COM"

MaxNumberControlled
Data type: uint32
Access type: Read-only

Maximum number of directly addressable ports supported by this network adapter. A value of 0 (zero) should be used if the number is unknown.

MaxSpeed
Data type: uint64
Access type: Read-only

Maximum speed, in bits per second, for the network adapter.

This property has not been implemented yet. It returns a NULL value by default.

Name
Data type: string
Access type: Read-only

Label by which the object is known. When subclassed, the property can be overridden to be a key property.

NetConnectionID
Data type: string
Access type: Read/write

Name of the network connection as it appears in the Network Connections Control Panel program.

NetConnectionStatus
Data type: uint16
Access type: Read-only

State of the network adapter connection to the network.

Disconnected (0)

Connecting (1)

Connected (2)

Disconnecting (3)

Hardware Not Present (4)

Hardware Disabled (5)

Hardware Malfunction (6)

Media Disconnected (7)

Authenticating (8)

Authentication Succeeded (9)

Authentication Failed (10)

Invalid Address (11)

Credentials Required (12)

Other

13–65535
NetEnabled
Data type: boolean
Access type: Read-only

NetworkAddresses
Data type: string array
Access type: Read-only

Array of network addresses for an adapter.

This property has not been implemented yet. It returns a NULL value by default.

PermanentAddress
Data type: string
Access type: Read-only

Network address hard-coded into an adapter. This hard-coded address may be changed by firmware upgrade or software configuration. If so, this field should be updated when the change is made. The property should be left blank if no hard-coded address exists for the network adapter.

This property has not been implemented yet. It returns a NULL value by default.

PhysicalAdapter
Data type: boolean
Access type: Read-only

Indicates whether the adapter is a physical or a logical adapter. If True, the adapter is physical.

PNPDeviceID
Data type: string
Access type: Read-only

Windows Plug and Play device identifier of the logical device.

Example: "*PNP030b"

PowerManagementCapabilities
Data type: uint16 array
Access type: Read-only

Array of the specific power-related capabilities of a logical device.

Unknown (0)

Not Supported (1)

Disabled (2)

Enabled (3)

The power management features are currently enabled but the exact feature set is unknown or the information is unavailable.

Power Saving Modes Entered Automatically (4)

The device can change its power state based on usage or other criteria.

Power State Settable (5)

Power Cycling Supported (6)

Timed Power On Supported (7)

Timed Power-On Supported

PowerManagementSupported
Data type: boolean
Access type: Read-only

If True, the device can be power-managed (can be put into suspend mode, and so on). The property does not indicate that power management features are currently enabled, only that the logical device is capable of power management.

ProductName
Data type: string
Access type: Read-only

Product name of the network adapter.

Example: "Fast EtherLink XL"

ServiceName
Data type: string
Access type: Read-only

Service name of the network adapter. This name is usually shorter than the full product name.

Example: "Elnkii"

Speed
Data type: uint64
Access type: Read-only

Estimate of the current bandwidth in bits per second. For endpoints which vary in bandwidth or for those where no accurate estimation can be made, this property should contain the nominal bandwidth.

Status
Data type: string
Access type: Read-only

Values include the following:

OK ("OK")

Error ("Error")

Degraded ("Degraded")

Unknown ("Unknown")

Pred Fail ("Pred Fail")

Starting ("Starting")

Stopping ("Stopping")

Service ("Service")

Stressed ("Stressed")

NonRecover ("NonRecover")

No Contact ("No Contact")

Lost Comm ("Lost Comm")

StatusInfo
Data type: uint16
Access type: Read-only

State of the logical device. If this property does not apply to the logical device, the value 5 (Not Applicable) should be used.

Other (1)

Unknown (2)

Enabled (3)

Disabled (4)

Not Applicable (5)

SystemCreationClassName
Data type: string
Access type: Read-only

Value of the scoping computer's CreationClassName property.

SystemName
Data type: string
Access type: Read-only

Name of the scoping system.

TimeOfLastReset
Data type: datetime
Access type: Read-only

Date and time the network adapter was last reset.