[General] WMI Information

Discussion in 'Mixed Languages' started by QuantumBug, Jul 30, 2015.

  1. QuantumBug

    QuantumBug MDL Developer

    Mar 7, 2012
    1,485
    1,321
    60
    #1 QuantumBug, Jul 30, 2015
    Last edited: Jul 30, 2015
    In the WMI Class win32_DiskDrive my boot drive sits at \\.\PHYSICALDRIVE0.

    My question is do only boot drives sit at this address? Or does it depend on where the device is plugged into the motherboard?

    I'm looking for something static for the boot drive in win32_DiskDrive, so I can grab just the boot drive serial number.

    E.g. "SELECT SerialNumber FROM Win32_DiskDrive WHERE \\.\PHYSICALDRIVE0"

    Regards, The Dev.
     
  2. Michaela Joy

    Michaela Joy MDL Crazy Lady

    Jul 26, 2012
    3,620
    3,912
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...