Im going to hide (C) drive
Lets see after these 3 methods
01. Using the Local Group Policy Editor
The Local Group Policy Editor is a Microsoft Management Console (MMC) snap-in that provides a single user interface through which all the Computer Configuration and User Configuration settings of Local Group Policy objects can be managed for your computer.
You will need to be an administrator to open the Local Group Policy Editor.
The Local Group Policy Editor will only be available in the Windows 7 Professional, Ultimate, and Enterpise editions. You will not have the Local Group Policy Editor available in the Windows 7 Starter and Home Premium editions.
- Click start and in the search field, type gpedit.msc and hit enter

- In the left pane. click Administrative Templates,Windows Components and Windows Explorer
- Then you will see like this and double click on Hide these specified drives in My Computer

- Click Enable if not enabled
a. To Hide a Drive or Combination of Drives
Click on the drop down arrow and select the drive or combination of drives option that
you want to set as restricted (hidden) and click apply and ok
b. To Unhide All Drives
Click Do not restrict drivers
- See now (C) drive disappeared

(It will replace after you click Do not restrict drives)
02. Using a REG File Download
(Whichever REG file you choose to use, it will overide all of the others. For more drive letter options, see the Method Three below)
- Select which drive you want to hide and download
a. To Hide A and B drives only
b. To Hide C drive only
c. To Hide D drive only
d. To Hide A, B, and C drives only
e. To Hide A, B, C, and D drives only
f. To Hide All drives
g. To Unhide All drives
- Right click on the downloaded .reg file and click on Merge.
- Click on Run, Continue (UAC-Vista) or Yes (UAC-Windows 7), Yes, and then OK when prompted.
- Log off and log on, or restart the computer to apply changes.
03. Manually in Registry Editor
- Open the Start Menu, then type regedit in the search box and press Enter.
- If prompted by UAC, then click on the Continue (Vista) or Yes (Windows 7)
- In regedit, navigate to the location below.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
To Hide a Drive or Combination of Drives
a. In the right pane of Explorer, right click on a empty area and 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.
c. Type in the drive option hex number below in bold you want to set as restricted and click on OK. (See screenshot below)
Tip-
You can also dot Decimal and use one of these numbers below for the drive with that letter you want hidden. To hide multiple drive letters, add the Decimal numbers together for each drive letter below that you want to hide, and use that number instead.
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, All drives=67108863
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).
- 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)

d. The registry will now look like this. (See screenshot below)
e. close regedit
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.
c. Close regedit
Log off and log on, or restart the computer to apply changes.