/ Tech updates

[How-To] Disable or Enable CD/DVD-ROM Drives with Registry Editor

Nowadays, many employers of the business firms as well as school/college principals prefers to disable CD/DVD-ROM drives to prevent the possible virus attack and also, on the back of their mind, the want to ensure that their employees and/or students can only concentrate on their work and don't get distracted with CD/DVD drives.

So, coming to the point, here we are going to discuss on how to Disable and enable CD/DVD-ROM Drives in the PC or laptop. There are several methods for it. The simple method for this task is to disable the CD/DVD-ROM driver with administrator privileges. But this trick is more simple and easy to detect, so we are not going to discuss about that at this point of time.  

The trick that we are going to discuss here is simple for the people having good geek level but for the people of lower geek level, I will advise them to backup the registry before editing it, as they can restore it if the problem occurs.

So, before we start I will advise the beginners to read more about the Windows Registry.

First of all, goto Start > Run and type "regedit" (without quotes)

Then navigate to this registry entry.

HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer

You will see the below screen.

Now, Right Click on the blank white space on the right panel and select 
New > DWORD (32-bit) value

After doing this, a new registry entry will be created. Now Rename this entry to NoViewOnDrive. You can do this by right clicking the registry entry.

Now right click on NoViewOnDrive and select Modify..

Now enter the values provided in the below data, according to the drive letter you want to disable.

A: 1
B: 2
C: 4
D: 8
E: 16
F: 32
G: 64
H: 128
I: 256
J: 512
K: 1024
L: 2048
M: 4096
N: 8192
O: 16384
P: 32768
Q: 65536
R: 131072
S: 262144
T: 524288
U: 1048576
V: 2097152
W: 4194304
X: 8388608
Y: 16777216
Z: 33554432
ALL: 67108863

The above provided values are according to the drive letters. 

For example, if I want to disable Drive E:, then I will enter the value 16.
Here is the image that will give you clear idea.

This only hides the drives from showing in MyComputer. If you want to play certain games (cracks) for which u have to plug out the CD/DVD drive, this trick doesn't work.

Also you can hide any combination of drives using that setting.


so 26 drives and 26 bits, select the combination u want to hide, set the following bits, others will be 0, convert the binary number to decimal and put that setting.

You can also directly modify the adm files and include them under group Policies.
How to: Use System Policies to Hide Specific Drives

Rajat Patel

Rajat Patel

Founder at TheNextGeek.com. Software Engineer & Business Analyst by profession. Avid open source evangelist. Mostly writes about Technology that interests him, and some neat tricks to make your day-to-day tech life a breeze.

Read More