title: network interface speed
body: <p>I want to get my network interface's Name, Speed, and MAC Address.</p>
  
  <pre><code>    var searcher = new ManagementObjectSearcher { Scope = GetConnectedScope(target, "cimv2") };
  
          try
          {
             searcher.Query = new ObjectQuery("SELECT MACAddress, Speed, Name FROM Win32_NetworkAdapter");
  
              var nicList = new List&lt;NetworkInterfaceModel&gt;();
              foreach (var item in searcher.Get())
              {
                  nicList.Add(new NetworkInterfaceModel
                  {
                      NetworkInterfaceName = (string)item["Name"],
                      NetworkInterfaceSpeed = (double)(item["Speed"] != null ? (ulong) item["Speed"] : 0)/1000/1000,
                      MacAddress = (string)item["MACAddress"]
                  });
              }
  </code></pre>
  
  <p>For Windows 7 and Vista it work just fine, but for XP and Windows Server 2003 it didn't collect the speed. How can I get the speed for XP and Server 2003?</p>