Hide Drives from Your Computer in Windows XP/7 or Vista

Various changes to the Windows Operating System, also for the Intranet

Moderator: sjj1805

Post Reply
User avatar
sjj1805
Site Admin
Posts: 1194
Joined: Fri Oct 27, 2006 12:45 am
operating_system: Windows 10 Pro
motherboard: Hewlett Packard 2AF7
system_drive: C
32bit or 64bit: 64 Bit
processor: 2-90 gigahertz Intel Core i5 4460S
ram: 8 GB
video card: NVIDIA GeForce GT 705
sound card: P40D100-4 NVIDIA High Definition Audio
Hard_Drive_Capacity: 8 TB
Location: Birmingham UK
Contact:

Hide Drives from Your Computer in Windows XP/7 or Vista

Post by sjj1805 » Fri Apr 19, 2013 5:41 pm

If you’ve got drives in My Computer that you never access, such as a USB Flash drive that you are using solely for ReadyBoost, a floppy drive, or a network drive only used for a particular piece of software, then you might want to simply hide the drive from your computer.

This tip will only hide the drive from being displayed, applications and the command prompt will still have access to it, and you can still manually browse to the folder if you type in the path.

Configure the Hidden Drives

Open up regedit.exe by using the start menu search box, and then browse down to the following key.

Code: Select all

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
If the Explorer key does not exist, you can click "Edit", select New Key and name it Explorer.

Similarly
The NoDrives key most likely does not exist by default, so you’ll need to create it with right-click \ new 32-bit DWORD and name it NoDrives.

Code: Select all

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDrives
This value is a 32 bit number, and the bits are arranged in reverse order with a value of 1 hiding that drive. For example, if we wanted to hide drives A: and F: we would arrange it like this:

Code: Select all

Z 	Y 	X 	W 	V 	U 	T 	S 	R 	Q 	P 	O 	N 	M 	L 	K 	J 	I 	H 	G 	F 	E 	D 	C 	B 	A
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1
Converting 100001 to decimal we end up with a decimal value of 33 or a hex value of 0×21, so if you double-click on the "NoDrives" key in the registry editor, choose Decimal and then enter 33 into the value field.

If you want to hide multiple drives, you’ll need to use the following table of all the drive letters to figure out the correct binary code

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

Post Reply