Drive - Hide or Unhide

How to Hide or Unhide a Drive in Vista and Windows 7

information   Information
This will show you how to hide or unhide a drive from being displayed in Computer and Windows Explorer in Vista and Windows 7.

By default, all drives are not hidden.
Note   Note
This will only hide or unhide the drive in Vista and Windows 7, and will not prevent access to the drive from say the command prompt or Run command window.

This will not unhide a drive that was not hidden by this method.

EXAMPLE: The D drive set to Unhide and Hide in Computer
NOTE:
Open the Start menu and click on the Computer button to see this.

Computer_Unhidden.jpgComputer_Hidden.jpg



METHOD ONE
Using the Local Group Policy Editor

NOTE: For more drive letter options, see Method Three below.
1. Open the all users, specific users or groups, or all users except administrators Local Group Policy Editor for how you want this policy applied.​
2. In the left pane, click on User Configuration, Administrative Templates, Windows Components, and Windows Explorer. (See screenshot below)​
Group_Policy.jpg

3. In the right pane, right click on Hide these specified drives in My Computer and click on Properties. (See screenshot above)​
4. To Unhide All Drives
A) Select (dot) Disabled or Not Configured and click on OK. (See screenshot below step 5C)​
B) Go to step 6.​

5. To Hide a Drive or Combination of Drives
A) Select (dot) Enabled.​
B) Click on the drop down arrow and select the drive or combination of drives option that you want to set as restricted (hidden). (See screenshot below)​
NOTE: Even though the options say Restrict, it is to Hide the drive(s).​
C) Click on OK.​
Properties.jpg

6. Close the Local Group Policy Editor window. Your done.​



METHOD TWO
Using a REG File Download

NOTE: Whichever REG file you choose to use, it will overide all of the others. For more drive letter options, see the Method Three below.
1. To Hide A and B drives only
A) download
B) Go to step 8.​

2. To Hide C drive only
A) download
B) Go to step 8.​

3. To Hide D drive only
A) download
B) Go to step 8.​

4. To Hide A, B, and C drives only
A) download
B) Go to step 8.​

5. To Hide A, B, C, and D drives only
A) download
B) Go to step 8.​

6. To Hide All drives
A) download
B) Go to step 8.​

7. To Unhide All drives
A) download

8. Save the .reg file to your Desktop.​
9. Right click on the downloaded .reg file, and click on Merge.​
10. Click on Run, Continue (UAC-Vista) or Yes (UAC-Windows 7), Yes, and then OK when prompted.​
11. When done, you can delete the downloaded .reg file if you like.​
12. Log off and log on, or restart the computer to apply changes.​



METHOD THREE
Manually in Registry Editor

1. Open the Start Menu, then type regedit in the search box and press Enter.​
2. If prompted by UAC, then click on the Continue (Vista) or Yes (Windows 7)..​
3. In regedit, navigate to the location below. (See screenshot below)​
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Reg1.jpg

4. To Hide a Drive or Combination of Drives
A) In the right pane of Explorer, right click on a empty area, click on New and DWORD (32-bit) Value, and type NoDrives and press Enter. (See screenshot below)​
B) Right click on NoDrives, and click on Modify.​
Reg2.jpg

C) Type in the drive option hex or decimal number below in bold you want to set as restricted, and click on OK. (See screenshot below)​
Tip   Tip
To hide multiple drive letters, add the decimal numbers together for each drive letter below that you want to hide, , select (dot) Decimal or Hex for the type of numbers you used, enter that number, and click on OK.
Tip   Tip

For Example: I'm using 8 (hex number) to Hide D drive only, or for E=16 and F=32, I would use 16+32=48 (Decimal number).​

[TABLE=class:-grid,-width:-500][TR][TD]
Drive Letter
[/TD]
[TD]
Decimal
[/TD]
[TD]
Hex
[/TD][/TR]
[TR][TD]
A
[/TD]
[TD]
1
[/TD]
[TD]
1
[/TD][/TR]
[TR][TD]
B
[/TD]
[TD]
2
[/TD]
[TD]
2
[/TD][/TR]
[TR][TD]
C
[/TD]
[TD]
4
[/TD]
[TD]
4
[/TD][/TR]
[TR][TD]
D
[/TD]
[TD]
8
[/TD]
[TD]
8
[/TD][/TR]
[TR][TD]
E
[/TD]
[TD]
16
[/TD]
[TD]
10
[/TD][/TR]
[TR][TD]
F
[/TD]
[TD]
32
[/TD]
[TD]
20
[/TD][/TR]
[TR][TD]
G
[/TD]
[TD]
64
[/TD]
[TD]
40
[/TD][/TR]
[TR][TD]
H
[/TD]
[TD]
128
[/TD]
[TD]
80
[/TD][/TR]
[TR][TD]
I
[/TD]
[TD]
256
[/TD]
[TD]
100
[/TD][/TR]
[TR][TD]
J
[/TD]
[TD]
512
[/TD]
[TD]
200
[/TD][/TR]
[TR][TD]
K
[/TD]
[TD]
1024
[/TD]
[TD]
400
[/TD][/TR]
[TR][TD]
L
[/TD]
[TD]
2048
[/TD]
[TD]
800
[/TD][/TR]
[TR][TD]
M
[/TD]
[TD]
4096
[/TD]
[TD]
1000
[/TD][/TR]
[TR][TD]
N
[/TD]
[TD]
8192
[/TD]
[TD]
2000
[/TD][/TR]
[TR][TD]
O
[/TD]
[TD]
16384
[/TD]
[TD]
4000
[/TD][/TR]
[TR][TD]
P
[/TD]
[TD]
32768
[/TD]
[TD]
8000
[/TD][/TR]
[TR][TD]
Q
[/TD]
[TD]
65536
[/TD]
[TD]
10000
[/TD][/TR]
[TR][TD]
R
[/TD]
[TD]
131072
[/TD]
[TD]
20000
[/TD][/TR]
[TR][TD]
S
[/TD]
[TD]
262144
[/TD]
[TD]
40000
[/TD][/TR]
[TR][TD]
T
[/TD]
[TD]
524288
[/TD]
[TD]
80000
[/TD][/TR]
[TR][TD]
U
[/TD]
[TD]
1048576
[/TD]
[TD]
100000
[/TD][/TR]
[TR][TD]
V
[/TD]
[TD]
2097152
[/TD]
[TD]
200000
[/TD][/TR]
[TR][TD]
W
[/TD]
[TD]
4194304
[/TD]
[TD]
400000
[/TD][/TR]
[TR][TD]
X
[/TD]
[TD]
8388608
[/TD]
[TD]
800000
[/TD][/TR]
[TR][TD]
Y
[/TD]
[TD]
16777216
[/TD]
[TD]
1000000
[/TD][/TR]
[TR][TD]
Z
[/TD]
[TD]
33554432
[/TD]
[TD]
2000000
[/TD][/TR]
[TR][TD]
All Drives
[/TD]
[TD]
67108863
[/TD]
[TD]
3ffffff
[/TD][/TR][/TABLE]
  • Hide A and B drives only - type 3 (hex)
  • Hide C drive only - type 4 (hex)
  • Hide D drive only - type 8 (hex)
  • Hide A, B, and C drives only - type 7 (hex)
  • Hide A, B, C, and D drives only - type f (hex)
  • Hide all drives - type 3ffffff (hex)
Modify.jpg

D) The registry will now look like this. (See screenshot below)​
Reg3.jpg

E) Go to step 6.​

5. To Unhide All drives
A) In the right pane of Explorer, right click on NoDrives and click on Delete. (See screenshot above)​
B) Click on Yes to confirm delete.​

6. Close regedit.​
7. Log off and log on, or restart the computer to apply changes.​
That's it,
Shawn


 

Attachments

Last edited by a moderator:
Holy clever board admins,  ̸B̸a̸t̸m̸a̸n̸  I mean Brink … this is great !  It was hard enough getting Google to understand what I wanted, with most results having to do with (mostly network) permissions, but all I wanted was a way to hide substituted drives from "Computer". If, for example, someone uses :


  • D: to point to %userprofile%\desktop
  •  I:  to point to %userprofile%\pictures\icons   -and-
  • V: to point to %userprofile%\videos

… all three of those drives, D:, I, and V:, will show up under Computer ;  all three will have the same user-assigned name as C: ( since they're all shares of C: ), and all three will show the "percent full" bar as extending to exactly the same point as C:, all of this making for one very cluttered looking Computer view. THIS solution, however, is perfect : neither D:, nor I:, nor V: appear in Computer, yet ( and this is key ) aside from not being visible in Computer, each still retains perfect functionality in every other way.

Your post is still helping people 8–9 years later (esp. people who are still stubbornly clinging to Windows[SUP]®[/SUP] 7 because they just have too much invested in it ). Thx dude! … hey, can ya tell I'm happy? :rolleyes:
 

My Computer

You're most welcome GuccizBud, and welcome to Vista Forums. I'm glad it could help. :)
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, 8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master 3
    Keyboard
    Logitech wireless K800
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, APC SMART-UPS RT 1000 XL - SURT1000XLI, Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
Back
Top