How to enable/disable devices in Windows from the command-line?
Download DevCon from Microsoft.
Find the instance ID of your CD-ROM drive:
devcon find *CDROM*
Now, use this instance ID (everything before the : sign) to disable the drive:
devcon disable “@IDE\CDROMMATSHITA_UJDA755ZDVD/CDRW_______________1.2
0____\5&3CCF215&0&0.0.0″
IDE\CDROMMATSHITA_UJDA755ZDVD/CDRW_______________1.20____\5&3CCF215&0&0.0.0: Disabled
1 device(s) disabled.
devcon enable “@IDE\CDROMMATSHITA_UJDA755ZDVD/CDRW_______________1.20
____\5&3CCF215&0&0.0.0″
IDE\CDROMMATSHITA_UJDA755ZDVD/CDRW_______________1.20____\5&3CCF215&0&0.0.0: Enabled
1 device(s) enabled.
Do not forget to add the @ sign before the device ID. Haven’t seen any mention of this […]