MoonPoint Support Logo

 

Shop Amazon Warehouse Deals - Deep Discounts on Open-box and Used ProductsAmazon Warehouse Deals



Advanced Search
March
Sun Mon Tue Wed Thu Fri Sat
         
19
           
2024
Months
Mar
Jul Aug Sep
Oct Nov Dec


Tue, Mar 19, 2024 9:38 pm

Obtaining information on a CD/DVD drive with WMIC

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 ]

[/os/windows/commands/wmic] permanent link

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo