$VAR1 = bless( { '/ServiceName' => '{8BAA28BF-8565-43BE-81C0-E7BBD94187D3}', '/Description' => 'Intel(R) PRO/1000 PL Network Connection' }, 'Win32::TieRegistry' ); #### $VAR1 = { 'DeviceID' => '2', 'Speed' => undef, 'ServiceName' => 'w39n51', 'NetworkAddresses' => '', 'MACAddress' => '00:13:02:24:B9:4E', 'AdapterType' => 'Ethernet 802.3', 'Name' => 'Intel(R) PRO/Wireless 3945ABG Network Connection' }; #### use strict; use Win32::TieRegistry; use Data::Dumper; # Get nic info via wmic (not available on all versions of windows)... my @devs = split(/^\s*\n/m, `wmic nic list brief /format:value`); shift(@devs); # Remove initial blank line my $d = $devs[1]; # Take the 2nd device my %node = split(/[=\n]/, $d); # Hashify information print Dumper(\%node); my $dev="LMachine/SOFTWARE/Microsoft/Windows NT/CurrentVersion/NetworkCards/2"; my $key=$Registry->Open($dev, { Access => "KEY_READ", Delimiter => "/" } ); print Dumper($key); #### wmic nicconfig list /format:value