How to Hide a Drive (Partition or Volume) in Windows 10

»»»How to Hide a Drive (Partition or Volume) in Windows 10

Without using any third-party software applications, Windows has built-in ability to lock or hide a disk drive from easy viewing from Windows Explorer or File Explorer. Hiding a drive is useful to prevent easy access to the content and data especially if they are sensitive or confidential in nature.

The easiest way to hide a drive, whether it’s an entire disk, partition or volume, is by removing its drive letter. Without a drive letter, the drive won’t show up in Windows Explorer or File Explorer, and is not visible to people to have access to the PC.

Hide a Drive by Removing Drive Letter and Path with Disk Management

  1. Open Win X Quick Access menu and select Disk Management.
  2. Select the volume/partition that you want to hide.
  3. Right-click the volume/partition and select Change Drive Letter and Paths from the contextual right click menu. Alternatively, select Change Drive Letter and Paths from Action -> All Tasks menu.

    Change Drive Letter and Path

  4. Select the Remove button to disassociate the drive letter from the volume/partiton.

    Remove Drive Letter

  5. Select Yes on the confirmation dialog to remove the drive letter. confirming you’d like to hide the disk or partition. If the drive is currently in use, it will still be available for use until computer restarts even though the drive letter is freed.
Tip
To make the drive visible and accessible again, just re-add the drive letter to it in Disk Management.

Hide a Drive by Removing Drive Letter with DiskPart Command

If you prefer to use Command Prompt to do the job, DiskPart can remove a drive letter too:

  1. Open an Administrator’s Command Prompt.
  2. Type DiskPart and hit Enter.
  3. Type List Volume and hit Enter to show a list of all volumes and partitions.
  4. Type Select Volume X where X is the numerical number of the volume represents the drive that you want to hide, e.g “Select Volume 1”, and hit Enter.
  5. Type Remove Letter=X where X is the drive letter for the drive that you want to hide and selected in previous step, and hit Enter.

When DiskPart successfully removed the drive letter or mount point, the drive is hidden from view.

Note
To show the hidden drive, repeat the step but issue the following command instead of “Remove” command:

Assign Letter=X

Hide Drive by Using Group Policy

  1. Run Local Group Policy Editor (gpedit.msc).
  2. Navigate to the following branch:

    User Configuration -> Administrative Templates -> Windows Components -> File Explorer

  3. Double-click on Hide these specified drives in My Computer and select Enabled.
  4. Then, select the drive that you want to hide form the drop-down menu.

    Hide Drives with Group Policy

    When enabled, the icons of specified drives are removed from My Computer and File Explorer, and the drive letters representing the selected drives do not appear in the standard Open dialog box. This policy setting removes the drive icons. Users can still gain access to drive contents by using other methods, such as by typing the path to a directory on the drive in the Map Network Drive dialog box, in the Run dialog box, or in a command window.

  5. Click on OK and restart the computer for the change to take effect.

Hide Drive via Windows Registry

If you don’t have Local Group Policy Editor, you can modify and edit the Windows Registry directly to hide the drive.

  1. Run Registry Editor (regedit).
  2. Navigate to the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer

  3. Right click on the “Explorer” tree or the blank area on the right pane, and create a New -> DWORD (32-bit) Value.
  4. Name the new value as NoDrives.
  5. Double click on “NoDrives” to modify its value data. Enter the value data according to the unique number associated with drive letter that you want to hide as listed in table below. The table lists the value in decimal, so when entering the value data, choose the base as Decimal.

    Drive LetterValue (in Decimal)
    A1
    B2
    C4
    D8
    E16
    F32
    G64
    H128
    I256
    J512
    K1024
    L2048
    M4096
    N8192
    O16384
    P32768
    Q65536
    R131072
    S262144
    T524288
    U1048576
    V2097152
    W4194304
    X8388608
    Y16777216
    Z33554432
    All Drives67108863

    If you want to hide multiple drives, enter the sum of the values for the drives as the decimal value data.
  6. Restart the computer.
Note
To unhide and reveal the hidden drives, delete the “NoDrives” registry key or set its value data to “0”.

Hide Drive via Windows Registry

For PowerShell lovers, it’s possible to use PowerShell commands to modify the registry and assign the value to “NoDrives” registry key.

Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -name NoDrives -value X -type DWORD

Replace the value X with decimal value representing the drive letter as listed in the table above for Registry Editor method. Restart the computer when done for the drive(s) to be hidden.

By |2018-09-08T00:58:39+00:00September 8th, 2018|Categories: Windows|Tags: , , , , , , |0 Comments

About the Author:

LK is a technology writer for Tech Journey with background of system and network administrator. He has be documenting his experiences in digital and technology world for over 15 years.Connect with LK through Tech Journey on Facebook, Twitter or Google+.