Use a bootloader tool or manufacturer software to disable the DVD drive.
Use a bootloader tool or manufacturer software to disable the DVD drive.
Check if it's possible to safely take out hardware from a batch file.
I would simply turn it off via the computer management tool. I’m not sure there’s a method using a .bat file, but I recall someone hiding such a script on the desktop so it would launch automatically. That was quite bothersome. I wonder if you could achieve a similar result with a batch file.
sorry for necro but here's the answer you can put this command in a .bat || pnputil /disable-device "SCSI\CDROM&VEN_HP&PROD_CDDVDW_SN-208DB\4&2C493A39&0&010000" || to find the device instance id of what you want to disable: - open device manager (devmgmt.msc) - right-click the device you want to disable and click properties - in the popup window go to the Details tab - from the drop down, select Device instance path - right click and copy the string shown in the box below. paste it in the command (prompt or powershell (you probably have to put the id in quotation marks)) https://search.brave.com/search?q=pnputi...ble+device