title: physical serial number in raid (windows)
body: <p>I am trying to get the physical serial numbers of hard drives in a raid array for equipment tracking purposes. I have tried a lot of wmic commands including:</p>
  
  <p><code>wmic path win32_physicalmedia get SerialNumber</code></p>
  
  <p>While a the wmic commands seem to work great when dealing with regular, non raid hard drives.
  I have started looking for APIs, and the best thing I have found is:
  <a href="http://www.codeproject.com/Articles/16941/Get-Physical-HDD-Serial-Number-without-WMI" rel="nofollow">http://www.codeproject.com/Articles/16941/Get-Physical-HDD-Serial-Number-without-WMI</a></p>
  
  <p>After a good bit of tinkering I managed to get that to compile, but it can't even find the serial numbers on non raid hard drives. Part of that might be because I can't give it admin rights.</p>
  
  <p>If there is a solution that requires admin rights, I can see what I can do.</p>
  
  <p>Windows Versions: 7, and Server 2008/2012</p>
  
  <p>This is a hardware RAID, but this needs to be able to be deployed on many platforms (HP/Dell/Custom servers and workstations across many generations).</p>