Print

Hide a Drive per User in Windows 7

Applies to: What?
Looking at ways of displaying different drives per user on a single computer. This one is by modifying the system registry, so if you aren't familiar with the system registry in MS Windows, you may need to find someone who is.

How?
As a proof of concept, let's see how to hide a specific drive. Note that this section applies to the currently logged-in user. To restrict other users, see the example after this one:
  1. Open the Start Menu, then type regedit in the search box and press Enter.
  2. In regedit, expand to the following key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
  3. In the right pane of Explorer, right click on a empty area, click on New > DWORD (32-bit) Value > type NoDrives > Enter.
  4. Right click on the DWORD you just created and click on Modify.
  5. Type in the drive option hex or decimal number from the list below you want to set as restricted, and click on OK.
    copyraw
    -- Restrict multiple drives by adding the values together
    -- For Example: To Restrict B & C, enter 6 decimal
    --              "      "    E & G, enter 80 decimal or 50 hexadecimal
    
    Drive Letter    Decimal         Hex
    A               1               1
    B               2               2
    C               4               4
    D               8               8
    E               16              10
    F               32              20
    G               64              40
    H               128             80
    I               256             100
    J               512             200
    K               1024            400
    L               2048            800
    M               4096            1000
    N               8192            2000
    O               16384           4000
    P               32768           8000
    Q               65536           10000
    R               131072          20000
    S               262144          40000
    T               524288          80000
    U               1048576         100000
    V               2097152         200000
    W               4194304         400000
    X               8388608         800000
    Y               16777216        1000000
    Z               33554432        2000000
    All Drives      67108863        3ffffff
    1.  -- Restrict multiple drives by adding the values together 
    2.  -- For Example: To Restrict B & C, enter 6 decimal 
    3.  --              "      "    E & G, enter 80 decimal or 50 hexadecimal 
    4.   
    5.  Drive Letter    Decimal         Hex 
    6.  A               1               1 
    7.  B               2               2 
    8.  C               4               4 
    9.  D               8               8 
    10.  E               16              10 
    11.  F               32              20 
    12.  G               64              40 
    13.  H               128             80 
    14.  I               256             100 
    15.  J               512             200 
    16.  K               1024            400 
    17.  L               2048            800 
    18.  M               4096            1000 
    19.  N               8192            2000 
    20.  O               16384           4000 
    21.  P               32768           8000 
    22.  Q               65536           10000 
    23.  R               131072          20000 
    24.  S               262144          40000 
    25.  T               524288          80000 
    26.  U               1048576         100000 
    27.  V               2097152         200000 
    28.  W               4194304         400000 
    29.  X               8388608         800000 
    30.  Y               16777216        1000000 
    31.  Z               33554432        2000000 
    32.  All Drives      67108863        3ffffff 
  6. Log off and log on, or restart the computer to apply changes.
Important! The above only applies to the user you are running Regedit as! (So if logged in as Admin, this hides it from the Admin, but not from the Guest account)

To only restrict Guest or a Specific User:
So undo the above if you didn't want this applied to the current logged-in user (delete the NoDrives DWORD). The concept of creating the NoDrives registry entry is what you need to remember. In the example below, we are applying the same principle to a specific user account (the Guest account):
Notes:
Source(s):
Category: Windows OS :: Article: 557