Hide and lock any drive(s) using regedit

Discussion in 'Tutorials' started by anilmail17, Dec 13, 2006.

Thread Status:
Not open for further replies.
  1. anilmail17

    anilmail17 New Member

    Joined:
    Aug 29, 2004
    Messages:
    149
    Likes Received:
    10
    Trophy Points:
    0
    Location:
    127.0.0.1
    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\CurrentVersion\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\CurrentVersion\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
     
  2. Tech Geek

    Tech Geek Wise Old Owl

    Joined:
    Sep 21, 2006
    Messages:
    1,602
    Likes Received:
    18
    Trophy Points:
    0
    Location:
    Cyber Hell
    Nice tut:p
     
  3. it_waaznt_me

    it_waaznt_me Coming back to life ..

    Joined:
    Nov 30, 2003
    Messages:
    2,023
    Likes Received:
    10
    Trophy Points:
    38
    Location:
    A bit closer to heaven
    It willl be still accesible if you type C: {Press Enter} in Run or Address Bar . .. :p
     
  4. Vishal Gupta

    Vishal Gupta Microsoft MVP

    Joined:
    Jul 28, 2005
    Messages:
    5,173
    Likes Received:
    121
    Trophy Points:
    0
    Location:
    AskVG.com
    If u use NoViewOnDrive, then it'll not be accessible ;)
     
  5. Ramakrishnan

    Ramakrishnan The Researcher

    Joined:
    Mar 7, 2006
    Messages:
    1,154
    Likes Received:
    10
    Trophy Points:
    38
    Location:
    Mumbai
    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
     
  6. Kiran.dks

    Kiran.dks New Member

    Joined:
    Apr 3, 2006
    Messages:
    2,494
    Likes Received:
    91
    Trophy Points:
    0
    Location:
    Pune, India
    ^^^Also leave a caution message: BACKUP YOUR REGISTRY BEFORE DOING CHANGES!
     
  7. OP
    OP
    anilmail17

    anilmail17 New Member

    Joined:
    Aug 29, 2004
    Messages:
    149
    Likes Received:
    10
    Trophy Points:
    0
    Location:
    127.0.0.1
    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
     
    Last edited: Dec 19, 2006
  8. jatt

    jatt Member

    Joined:
    Dec 8, 2006
    Messages:
    380
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    (punjab) ਪੰਜਾਬ>>>New Zealand
    thanks anilmail17 for good tut to share
     
  9. ax3

    ax3 Cool as a CUCUMBAR ! ! !

    Joined:
    Dec 14, 2003
    Messages:
    5,387
    Likes Received:
    5
    Trophy Points:
    38
    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 .........
     
  10. kirtan

    kirtan New Member

    Joined:
    Sep 11, 2006
    Messages:
    133
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Kernel
    thanks dude for the info!
     
  11. Ron

    Ron ||uLtiMaTE WinNER||

    Joined:
    Nov 12, 2006
    Messages:
    704
    Likes Received:
    6
    Trophy Points:
    0
    Location:
    Kathmandu,Nepal
    Good Tutorial.......
    Keep Going...........
     
  12. vivekrm007

    vivekrm007 New Member

    Joined:
    Jun 18, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    0
    thanx m8,its gr8......
     
  13. koolbluez

    koolbluez Šupər♂ - 超人

    Joined:
    Oct 19, 2004
    Messages:
    1,619
    Likes Received:
    50
    Trophy Points:
    0
    Location:
    Look up... up in da sky... see me yet? Nah... Use
    nniiiiccccceeeee
     
    Last edited: Feb 6, 2007
  14. Siddharth Maheshwari

    Siddharth Maheshwari New Member

    Joined:
    Sep 23, 2006
    Messages:
    319
    Likes Received:
    17
    Trophy Points:
    0
  15. ashu888ashu888

    ashu888ashu888 Core i7 (nehalem) Owner

    Joined:
    Jan 22, 2005
    Messages:
    3,472
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    Mumbai
    Thanx, nice trice Ace...
     
  16. OP
    OP
    anilmail17

    anilmail17 New Member

    Joined:
    Aug 29, 2004
    Messages:
    149
    Likes Received:
    10
    Trophy Points:
    0
    Location:
    127.0.0.1
    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
     
  17. Vishal Gupta

    Vishal Gupta Microsoft MVP

    Joined:
    Jul 28, 2005
    Messages:
    5,173
    Likes Received:
    121
    Trophy Points:
    0
    Location:
    AskVG.com
Thread Status:
Not open for further replies.

Share This Page