title: wmic diskdrive get serialnumber -> invalid xml output
body: <p>I want to read the name and the serial number of my hard drives.</p>
  
  <p>I stumbled upon <code>wmic</code> but I'm having troubles. I guess these two commands should do the trick, but I only get the message:</p>
  
  <pre><code>Invalid Xml-Content. //(Translated)
  
  wmic path win32_physicalmedia get serialnumber
  </code></pre>
  
  <p>or</p>
  
  <pre><code>wmic DISKDRIVE GET SerialNumber
  </code></pre>
  
  <p>I tried the following as well:</p>
  
  <pre><code>wmic DISKDRIVE GET SerialNumber /FORMAT:list
  wmic DISKDRIVE GET SerialNumber /FORMAT:xml.xsl
  wmic DISKDRIVE GET SerialNumber &gt; c:\test.txt
  </code></pre>
  
  <p>Any ideas on what I'm doing wrong?</p>
  
  <hr>
  
  <p><strong>Solution:</strong></p>
  
  <p>Thanks JPBlanc, via the <code>/?</code> command I've found out that <code>SerialNumber</code> doesn't even exist. I now use</p>
  
  <pre><code>WMIC /output:"c:\hdds.txt" DISKDRIVE GET PNPDeviceID,Name /Format:CSV
  </code></pre>
  
  <p>which gives the correct result.</p>