<div dir="ltr">Tim,<div><br></div><div>I am looking here:<br><br>SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BF9F6FB0-C999-4D19-BED0-144F77E2A9D6}</div><div><br></div><div>Enumerating the keys for a BusType == 5, then grabbing the values of DriverDesc, DriverDate, & DriverVersion.</div>
<div><br></div><div>So I am doing this:</div><div><br></div><div><div> try:</div><div>            hKey = _winreg.OpenKey (keyPath, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BF9F6FB0-C999-4D19-BED0-144F77E2A9D6}", 0, _winreg.KEY_READ)</div>
<div>            i=0</div><div>            while True:</div><div>                try:</div><div>                    subkey = _winreg.EnumKey(hKey, i)</div><div>                    i += 1</div><div>                    if (subkey.QueryValueEx(hKey,"BusType") == "5"):</div>
<div>                        outputline = host + "," + subkey.QueryValueEx(hKey,"DriverDesc") + "," + subkey.QueryValueEx(hKey,"DriverDate") + "," + subkey.QueryValueEx(hKey,"DriverVersion") + "\n"</div>
<div>                        print outputline</div><div>                        outputFile.write(outputLine)</div><div>                except WindowsError, e:</div><div>                    # WindowsError: [Errno 259] No more data is available    </div>
<div>                    pass</div><div>        except:</div><div>            print "Unable to query registry key for NIC adapters"</div><div><br></div><div>Thanks.  I am reviewing the WMI Registry piece you sent over right now.  I am certainly open to anyway I can get the info.  I have some odd behaviors across some servers during vulnerability scanning & have a suspicion that some driver discrepancies on the NIC are to blame.</div>
<br>
Kevin<br><br><br><div class="gmail_quote">On Mon, Oct 22, 2012 at 3:29 PM, Tim Golden <span dir="ltr"><<a href="mailto:mail@timgolden.me.uk" target="_blank">mail@timgolden.me.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 22/10/2012 16:38, Kevin Holleran wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks, I will look into that.  WMI is enabled, but everything WMI query I<br>
wrote (& I am NOT a WMI expert.... or even close) gave me a bunch of NIC<br>
info, but not the info I am after in the registry (driver description,<br>
driver date, driver version for the NICs).<br>
</blockquote>
<br></div>
I assume you've found things like the Win32_NetworkAdapter which doesn't include driver details. If you cared to come across with the registry keys / values you needed I'm sure I could rustle up a sample query to get you on the right path.<br>

<br>
TJG<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br></div></div>