How to hide a DVD or CD drive in File Explorer

As optical discs become a thing of the past, most modern laptops and PCs are coming without a DVD drive. Even if the device have such a drive, the latter is rarely used. Today it is almost a rudiment, only taking up space in the device case. The same can be said about its icon in the “This PC” folder. Luckily, the icon can be hidden with ease.

dvd in this pc
dvd in this pc

Windows has a policy that allows you to hide items in the This PC section, but it does not apply to the DVD drive .

The policy only supports hiding drives and partitions with the letters A , B , C and D, while the drive usually has the letter E . You can get around this annoying limitation by directly editing the registry key corresponding to the policy.

Hide DVD-CD drive in File Explorer

  1. Open the registry editor with the regedit command.
  2. Go to the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer branch.
  3. Now create a new DWORD value in the right column, with the name Nodrives and the value 16 in hexadecimal. The number 16 in this example corresponds to the letter E.hide cd dvd in file explorer
  4. If the drive has a different letter, calculate the value according to the formula in which each subsequent drive has a number multiplied by 2 , and in which the starting point is 1. I.e. A=1, B=2, C = 4, D = 8, E = 16, and so on.
  5. After editing the key, restart Explorer.

Alternatively, you can try to disable the cdrom service, again in the Registry. This will hide the letter in This PC.

Disable the cdrom service

  1. Run regedit.exe to launch the Registry editor.
  2. Go to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cdrom section.
  3. Double-click the Start DWORD value and set it to 4.

    disable cdrom service
    Disable the cdrom service

  4. The settings will take effect after restarting the computer.

Finally, the is an easier way to hide the drive icon with help of the Disk Management app.

Disk Management Method

Open the disk management snap-in, right-click on the DVD drive and select the option “Change drive letter and paths …” from the context menu.

Change drive letter or drive path
Change drive letter or drive path

Click the “Remove button in the dialog box that opens and confirm the action by clicking “Yes“.

remove the drive letter
Remove the drive letter

The DVD drive will be hidden immediately, but the CD-ROM cannot be hidden in this way, since it doesn’t appear in disk management. But you can still use Registry Editor to hide it.

And the last method is Device Manager.

Disabling the drive in Device Manager

  1. Right-click the Start icon, and select Device Manager in the menu.
  2. Find your DVD or CD drive in the devices.
  3. Right-click it and select Disable device from the menu.

    disable device
    Disable device

  4. Confirm the operation. The drive will be disabled, with its letter disappearing from This PC.

The last method is the easiest method, as it doesn’t involve any registry editing.

Looks like you've read the post to the end. If you enjoyed it, please share it. You would greatly help our blog to grow!

Author: The MFTNEXT Team

The MSFTNEXT project is a small team of authors who love to engage with the latest technology and gadgets. Being passionate Windows bloggers, we are happy to help others fix their system issues.

Leave a Reply

Your email address will not be published.