Network Card Information Features

#1
TCC 16.00.23 Windows Vista [Version 6.0.6002]
TCC Build 23 Windows Vista Build 6002 Service Pack 2

My internet modem is wireless, with no wired connections. Thus, my Vista Desktop has a D-Link Wireless Adapter, and also an Intel wired adapter.

I was trying out some of the new items in version 16 relating to network card information. I created the following batch file for testing;

Code:
:: iptest.btm
@setlocal
@echo off
echox wmiquery /A root\CIMV2 "select * from Win32_NetworkAdapter where Name = 'D-Link DWA-525 Wireless N 150 Desktop Adapter(rev.A2)'"
wmiquery /A root\CIMV2 "select * from Win32_NetworkAdapter where Name = 'D-Link DWA-525 Wireless N 150 Desktop Adapter(rev.A2)'"
echo _ipadapters = %_ipadapters
echo _ipadapter = %_ipadapter
echo @ipnamen[%1] = %@ipnamen[%1]
echo @ipdesc[%1] = %@ipdesc[%1]
echo @ipphysical = %@ipphysical[%1]
echo @iptype[%1] = %@iptype[%1]
@endlocal
I tried values from 0 to 6 with this batch file, but it could not find my Wireless Card. I then remembered that I had created a bridge of my Wireless Card to my Intel(R) 82567LM-3 Gigabit Network Card.

I removed the bridge, and I can now find my Wireless Card.

So, with no bridge, I get the following;

@ipnamen[1] = {EB980515-E587-4C96-A752-3B2C7F05B56C}
@ipdesc[1] = D-Link DWA-525 Wireless N 150 Desktop Adapter(rev.A2)
@ipphysical = 90-93-e4-09-3e-55
@iptype[1] = WIRELESS

@ipnamen[2] = {B35FABDD-E328-49C7-AAAB-DC2550E1F066}
@ipdesc[2] = Intel(R) 82567LM-3 Gigabit Network Connection
@ipphysical = 00-27-b9-72-42-66
@iptype[2] = ETHERNET

With the bridge active, my D-Link Wireless Card, and my Intel Wired Card, do not show up.

With the bridge active, _ipadapters returns 6, with the bridge not active, _ipadapters returns 9.

This, in my opinion, is how it should work, and nothing is wrong with these new features of version 16. Just wanted to share this in the event others may have a "unique" setup, such as I do, and wonder why they are not getting the results they wanted.

Joe