P
Petr Laznovsky
I want to read info about ACTIVE network connections from registry by
batch file. Trying read and parse
"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards"
and
"HKLM\SYSTEM\ControlSet001\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\%servicename%\connection"
path, but there are also information about installed and currently not
presented (disconnected) USB network devices. Is there any way to get
only present adapters? there is no such information in this reg key. I
have only idea to parse adapter list get from registry against output of
ipconfig command which show only presented adapters, but this is all
thumbs.
Better idea??
Script should be distributable over W2k+ systems
P.L.
batch file. Trying read and parse
"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards"
and
"HKLM\SYSTEM\ControlSet001\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\%servicename%\connection"
path, but there are also information about installed and currently not
presented (disconnected) USB network devices. Is there any way to get
only present adapters? there is no such information in this reg key. I
have only idea to parse adapter list get from registry against output of
ipconfig command which show only presented adapters, but this is all
thumbs.
Better idea??
Script should be distributable over W2k+ systems
P.L.