Getting Portocal Settings for NIC

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I'm trying to get the protocal settings only on the active NICs on a

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

$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

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


Site Timeline