If you want to determine the model number of an optical drive, such as
a CD or DVD drive, in a system running a Microsoft Windows operating system
from a command-line interface (CLI), you can
open a command prompt window
and issue a Windows Management
Instrumentation Command-line (WMIC) command:
wmic cdrom get name
(the value for
caption
may return the same information). E.g.:
C:\>wmic cdrom get name Name HL-DT-ST DVD-ROM DU90N C:\>wmic cdrom get caption Caption HL-DT-ST DVD-ROM DU90N C:\>
If you wish to determine whether media, such as a CD or DVD, is in the
drive, you can use the command wmic cdrom get medialoaded
. If
there is no disc in the drive, the value for MediaLoaded
will be
FALSE
. If there is a disc in the drive, the value will be true
as in the example below where there is a CD in the drive.
C:\>wmic cdrom get medialoaded MediaLoaded TRUE C:\>
[ More Info ]