| Author | Messages | |
guyt1799190425
Posts:36
 | | 02/27/2008 11:46 AM |
|
There is a chance that I have found some WMI bugs on Server Core that make working with WIN32_NetworkAdapter and WIN32_NetworkAdapterConfiguration classes quite challenging. Specifically the following properties are always empty:
- WIN32_NetworkAdapter :: NetConnectionID (the name of an interface as it appears in control panel)
- WIN32_NetworkAdapter :: NetConnectionStatus (well, without it you cannot check whether an interface is online or offline) - something that you need when turning DHCP on a specific interface - if the interface is offline, calling EnableDHCP method on WIN32_NetworkAdapterConfiguration instance will result in the interface getting a static IP (0.0.0.0) with subnet mask of 255.0.0.0
Currently I can only test it on WMWare - any chance anyone can verify this on a real box ? You do not really need to run any scripts - just execute:
C:\>Wmic nic get name,netconnectionid,netconnectionstatus
For IP enabled interfaces you should see something like:
Name NetConnectionID NetConnectionStatus
Broadcom NetXtreme 57xx Gigabit Controller Local Area Connection 7
Dell Wireless 1390 WLAN Mini-Card Wireless Network Connection 2
VMware Virtual Ethernet Adapter for VMnet1 VMware Network Adapter VMnet1 2
VMware Virtual Ethernet Adapter for VMnet8 VMware Network Adapter VMnet8 2
If NetConnectionID and NetConnectionStatus are empty, you are also subject to the issue.
TIA,
Guy
| | | |
| tlemmiksoo
Posts:0
 | | 02/27/2008 2:07 PM |
| Yes, my connection ID and Status are blank. Nic is Broadcom 440x Todd Lemmiksoo Network Administrator
All-Mode Communications, Inc. 1725 Dryden Road Freeville, New York 13068 (607) 347-4164 x440 1-877-ALLMODE (toll free) http://www.all-mode.com <http://www.all-mode.com/>
________________________________
From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Guy Teverovsky Sent: Wednesday, February 27, 2008 11:31 AM To: ActiveDir@mail.activedir.org Subject: [ActiveDir] [Half OT] WMI on Server Core (RTM)
There is a chance that I have found some WMI bugs on Server Core that make working with WIN32_NetworkAdapter and WIN32_NetworkAdapterConfiguration classes quite challenging. Specifically the following properties are always empty:
- WIN32_NetworkAdapter :: NetConnectionID (the name of an interface as it appears in control panel)
- WIN32_NetworkAdapter :: NetConnectionStatus (well, without it you cannot check whether an interface is online or offline) - something that you need when turning DHCP on a specific interface - if the interface is offline, calling EnableDHCP method on WIN32_NetworkAdapterConfiguration instance will result in the interface getting a static IP (0.0.0.0) with subnet mask of 255.0.0.0
Currently I can only test it on WMWare - any chance anyone can verify this on a real box ? You do not really need to run any scripts - just execute:
C:\>Wmic nic get name,netconnectionid,netconnectionstatus
For IP enabled interfaces you should see something like:
Name NetConnectionID NetConnectionStatus
Broadcom NetXtreme 57xx Gigabit Controller Local Area Connection 7
Dell Wireless 1390 WLAN Mini-Card Wireless Network Connection 2
VMware Virtual Ethernet Adapter for VMnet1 VMware Network Adapter VMnet1 2
VMware Virtual Ethernet Adapter for VMnet8 VMware Network Adapter VMnet8 2
If NetConnectionID and NetConnectionStatus are empty, you are also subject to the issue.
TIA,
Guy
| | | |
| guyt1799190425
Posts:36
 | | 03/01/2008 2:06 PM |
| Thanks. I'll run some more tests and will submit a bug.
Guy
From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Todd Lemmiksoo Sent: Wednesday, February 27, 2008 9:03 PM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] [Half OT] WMI on Server Core (RTM)
Yes, my connection ID and Status are blank. Nic is Broadcom 440x
Todd Lemmiksoo Network Administrator
All-Mode Communications, Inc. 1725 Dryden Road Freeville, New York 13068 (607) 347-4164 x440 1-877-ALLMODE (toll free) http://www.all-mode.com <http://www.all-mode.com/>
________________________________
From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Guy Teverovsky Sent: Wednesday, February 27, 2008 11:31 AM To: ActiveDir@mail.activedir.org Subject: [ActiveDir] [Half OT] WMI on Server Core (RTM)
There is a chance that I have found some WMI bugs on Server Core that make working with WIN32_NetworkAdapter and WIN32_NetworkAdapterConfiguration classes quite challenging. Specifically the following properties are always empty:
- WIN32_NetworkAdapter :: NetConnectionID (the name of an interface as it appears in control panel)
- WIN32_NetworkAdapter :: NetConnectionStatus (well, without it you cannot check whether an interface is online or offline) - something that you need when turning DHCP on a specific interface - if the interface is offline, calling EnableDHCP method on WIN32_NetworkAdapterConfiguration instance will result in the interface getting a static IP (0.0.0.0) with subnet mask of 255.0.0.0
Currently I can only test it on WMWare - any chance anyone can verify this on a real box ? You do not really need to run any scripts - just execute:
C:\>Wmic nic get name,netconnectionid,netconnectionstatus
For IP enabled interfaces you should see something like:
Name NetConnectionID NetConnectionStatus
Broadcom NetXtreme 57xx Gigabit Controller Local Area Connection 7
Dell Wireless 1390 WLAN Mini-Card Wireless Network Connection 2
VMware Virtual Ethernet Adapter for VMnet1 VMware Network Adapter VMnet1 2
VMware Virtual Ethernet Adapter for VMnet8 VMware Network Adapter VMnet8 2
If NetConnectionID and NetConnectionStatus are empty, you are also subject to the issue.
TIA,
Guy
| | | |
|
|