Serial Number of Bootable device : <p>I have to get the serialnumber of the disk on which my operating system is installed.</p>

<p>I know in order to get serial number i need to run:</p>

<pre><code>&gt;wmic diskdrive get serialnumber,capabilities
Capabilities  SerialNumber
{3, 4}        AI92NXXXXXXXX2G02
{3, 4, 7}     1172XXXXXX030
</code></pre>

<p>There are no attributes to check if the OS is installed on this disk.</p>
