Click here to get back home

Getting Portocal Settings for NIC

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Getting Portocal Settings for NIC Cosmic Cruizer 05-09-2008
Posted by Cosmic Cruizer on May 9, 2008, 9:50 pm
Please log in for more thread options
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.

Similar ThreadsPosted
Where to put Settings-Variables? March 30, 2006, 1:34 am
settings for cronw January 5, 2008, 2:14 pm
newbie, what is the best way to include common settings.conf values September 21, 2005, 10:32 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap