Prompt dei Comandi: Verificare l'Unità CD/DVD con WMIC
Usare Windows Management Instrumentation (WMIC) per elencare le unità ottiche da CMD o PowerShell.
Comando
wmic cdrom get name, drive, mediatype, status
Output di Esempio
Drive MediaType Name Status D: Removable Media HL-DT-ST DVDRAM GUD0N OK E: Removable Media Virtual CloneDrive OK
Varianti Utili
wmic cdrom get drive— solo le lettere delle unità.wmic logicaldisk where "drivetype=5" get deviceid, volumename, description— include unità virtuali.Get-CimInstance Win32_CDROMDrive(PowerShell, output più pulito).
Nota
WMIC è deprecato in Windows 10 21H1+ ma funziona ancora. I cmdlet PowerShell CIM sono il sostituto moderno.