PDA

View Full Version : Hide and lock any drive(s) using regedit


anilmail17
13-12-2006, 08:42 AM
You can hide any of drive(s) by just adding two keys in windows registry

goto start>run

Type regedit and press enter. This will bring you to the registry editor.To hide any drive you have to follow these 2 steps

STEP1: Hidding Drive
goto HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer now create a new DWORD value NoDrives and set its value as

2^(Alpha Number of Drive Letter-1)
where Alpha number are simple counting of alphabets from A to Z as 1 - 26

for example: to hide C drive
Alpha number of C is 3 so 2^(3-1) = 4 (decimal value)

If you want to hide more than one drive than calculate the value of each drive as explained and then set sum of those numbers as value

Step2: Prevent Access to the drive
Now as we have make our drive invisbble but it is still accesible so to lock the drive we will create another DWORD value at

HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer
create a new DWORD value NoViewOnDrive and set its value same as you have calculated for hidding the drive(s)

Now your drive is locked. If you want to unlock and unhidden the drive then just delete these two keys and your drive is again accessible. You can also create two .reg files one for hidding and locking and another one for unlocking and unhidding

Tech Geek
16-12-2006, 07:03 PM
Nice tut:p

it_waaznt_me
17-12-2006, 05:44 PM
It willl be still accesible if you type C: {Press Enter} in Run or Address Bar . .. :p

Vishal Gupta
17-12-2006, 08:47 PM
If u use NoViewOnDrive, then it'll not be accessible ;)

Ramakrishnan
18-12-2006, 12:55 PM
I request all the registry gurus to include the "reg' files" so that the uninitiated will not mess up their registry while doing something. Moreover mistakes are less likely to happen

Kiran_tech_mania
18-12-2006, 01:33 PM
^^^Also leave a caution message: BACKUP YOUR REGISTRY BEFORE DOING CHANGES!

anilmail17
18-12-2006, 02:03 PM
we all learn from mistake. Iif something goes wrong by a registry learner then its good, he will learn from that and i cannot create a .reg file for this tutorial because value of DWORD used is diffrent for each drive
__________
Yaa Kiran_tech_mania u r right. I forgot to add the line of Caution and a line of advice
Caution: Playing with registry always is dangerous.
Advice: always backup your registry

jatt
19-12-2006, 05:31 AM
thanks anilmail17 for good tut to share

ax3
19-12-2006, 01:26 PM
fantastic tut .... implemented & its working ....

NOW i can hide my stuff on 1 FULL drive instead of just hidding those folders & hoping no 1 accesses them when i am not present .......

thanx a MILLION TIMES 2 all .........

kirtan
22-12-2006, 12:46 PM
thanks dude for the info!

Ron
30-12-2006, 12:28 PM
Good Tutorial.......
Keep Going...........

vivekrm007
27-01-2007, 02:26 PM
thanx m8,its gr8......

koolbluez
02-02-2007, 01:46 PM
nniiiiccccceeeee

Siddharth Maheshwari
02-02-2007, 04:49 PM
Gud one

ashu888ashu888
02-02-2007, 05:35 PM
Thanx, nice trice Ace...

anilmail17
06-02-2007, 04:17 PM
To hide more than one drive find the number for both drive separately and then and them in decimal, use the result value and set them as value for NoDriveOnView and NoDrives

Vishal Gupta
06-02-2007, 10:41 PM
A small info about restricting drives here:

http://www.thinkdigit.com/forum/showthread.php?t=40864