Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting Portocal Settings for NIC

0 views
Skip to first unread message

Cosmic Cruizer

unread,
May 9, 2008, 9:50:47 PM5/9/08
to
I'm trying to get the protocal settings only on the active NICs on a
computer.

I'm using $nics = $objWMIService->ExecQuery
('SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled =
True'); to get the active NICs, but how can I feed the NIC info into the
following:


$colItems = $objWMIService->ExecQuery
("SELECT * FROM Win32_NetworkProtocol","WQL",wbemFlagReturnImmediately
| wbemFlagForwardOnly);

Using Win32_NetworkProtocol, all i can figure out how to do is print out a
list of all the drivers and I'm not seeing how to get that info out of
Win32_NetworkAdapterConfiguration.

Ideally, I would like to list the NIC configuration along with the
corresponding protocals for that NIC.

Thanks.

0 new messages