How To?

How to Hide/Unhide Drives or Volumes in Windows 11 PC? 5 Effective Ways!

What are the Multiple Methods to Hide or Unhide a Drive or Volume In Windows 11 PC?

As a web app developer working on multiple online apps and websites,my drives are filled with project files and future ideas. Recently,my PC’s graphics card malfunctioned,requiring me to visit the MSI service center for repairs. However,they requested my login password to address the graphics driver issue,which made me uncomfortable as it could grant access to my project files. I decided not to proceed with the repair at that moment.

After doing some research,I found that Windows 11 offers a method to hide drives without deleting or losing data. I tried this feature,and it worked well! I successfully hid the drive containing all my important project data.

In this tutorial,I’ll share my experience and provide step by step instructions on how to hide drives in Windows 11. This is a great way to secure sensitive information without needing to share access.

Method 1a:Hide Drive Using Disk Management:

  • Firstly,you need to use the keyboard shortcut to launch the quick menu.
    • Winkey + X
  • Then in the menu,you need to choose the Disk Management option.
Choose Disk management from the Quick Menu option
Choose Disk management from the Quick Menu option
  • It will display all the available drives on your device.
Disk Management displays the list of Drives available on the PC.
Disk Management displays the list of Drives available on the PC.
  • Now,you need to right-click the drive that you want to hide and choose the Change Drive Letter and Paths option.
Choose the drive to hide
Choose the drive to hide
  • Now in the pop-up window,you need to click the Remove button to hide the drive.
  • Click the Yes button if it prompted to complete the action.
Using Disk Management to hide the drive without losing its data!
Using Disk Management to hide the drive without losing its data!

Note: This method will not delete or remove any data while hiding it. Your data will be protected while doing the process.

Drive has been hidden from the File Explorer
Drive has been hidden from the File Explorer

Method 1b:Unhide Drive using Disk Management:

To unhide the drives that has been hidden using disk management tool. Follow the below steps.

  • Choose the hidden drive (The drives without having any Letter assigned).
  • Once you found the hidden drive and then you need to Right-click the hidden drive and choose the Change Drive Letter and Paths option.
Unhiding the Drive using Disk Management tool
Unhiding the Drive using Disk Management tool
  • Now,choose the Add button will launch the Add Drive Letter or Path window will be appear on your screen.
  • Choose the Drive Letter from the Drop down box or if you add it with other drive choose the “Mount in the following NTFS Folder”option.
  • Finally,Click the Okay button to confirm the changes.
Unhiding &Assigning Drive Letter to the hidden Drive
Unhiding &Assigning Drive Letter to the hidden Drive

In this way,you unhide the drive using the Disk management tool. You can find the drive in the File Explorer,Based on the alphabetical order of the Drive Letter you chose will be appear.

Method 2a:Hide Drive keeping its Data Using Command Prompt:

  • Click the Start Menu and search for Command Prompt
  • You need to choose the “Run as Administrator”option to launch the command prompt in admin mode.
Open Command Prompt using Run as Administrator
Open Command Prompt using Run as Administrator
  • Now you need to enter the following command:
    • diskpart
  • The command will launch the diskpart.exe application in the console as shown in the below image.
Diskpart application launched inside the console.
Diskpart application launched inside the console.
  • Enter the following command which will list all the drives available in your device:
    • list volume
Listing all drives using diskpart.exe
Listing all drives using diskpart.exe
  • You need to identify which drive you want to hide and execute following command:
    • select volume N

Note: I’m going to hide my N:\ Drive and so i’m using the letter D in the above command,Replace N:\ with the number of the volume you wish to hide.

Identifying and choosing the drive using diskpart.exe
Identifying and choosing the drive using diskpart.exe
  • Now the drive that need to hidden is chosen,Execute the following command to hide it without losing its data from the file explorer.
    • remove letter=N
Command Executed to hide the chosen drive
Command Executed to hide the chosen drive
  • Once you execute the above command,you will get the message saying “DiskPart successfully removed the drive letter or mount point.”
  • In simple words,the drive is hidden from the file explorer without losing its data. You can find the drive has been hidden in the File Explorer.
Drive has been hidden from the File Explorer
Drive has been hidden from the File Explorer

Method 2b:Unhide Drive using DiskPart.exe tool:

To unhide the drive that has been hidden in your device:

  • Open the command prompt with Admin Privileges
  • Now you need to enter the following command:
    • diskpart
Diskpart application launched inside the console.
Diskpart application launched inside the console.
  • Enter the following command which will list all the drives available in your device:
    • list volume
  • Now,the list of volumes will be displayed including the hidden drives. Identify the volume that you want to unhide back again.
Listing all drives including Hidden volumes
Listing all drives including Hidden volumes
  • To select the hidden drive,you need to execute the below command:
    • select volume 1
Selecting the Hidden Volume using DiskPart.exe command
Selecting the Hidden Volume using DiskPart.exe command
  • Now,you need to execute the following command to assign the Path or Letter to the hidden volume:
    • assign letter=N
  • You will receive the following message “DiskPart successfully assigned the drive letter or mount point.
  • The drive will be visible back again without losing its data and can be found in the File Explorer.

Method 3a:Hide Drive or Volume using PowerShell:

  • Click the Start Menu and search for PowerShell
  • You need to choose the “Run as Administrator”option to launch the powershell in admin mode.
Opening PowerShell as Admin Mode
Opening PowerShell as Admin Mode
  • To list all the available drives or volume in your device,use the following command:
    • Get-Volume
List of volumes available in your device using PowerShell
List of volumes available in your device using PowerShell
  • Once you identified the drive,you need to execute the following command:
    • Set-Partition -DriveLetter N -IsHidden $true
Hide Volumes or Drives using PowerShell Command
Hide Volumes or Drives using PowerShell Command
  • That’s it,This is the quickest way to hide the drives using the PowerShell command.

Method 3a:Unhide Drives or Volumes using PowerShell:

  • You cannot simply reverse the hidden process,you need to do some extra steps to unhide the hidden drives or volumes.
  • Open the PowerShell with admin privileges and execute the following list of commands.
    • diskpart
    • list volume
Identifying the Hidden Volumes using the diskpart.exe in PowerShell command
Identifying the Hidden Volumes using the diskpart.exe in PowerShell command
  • You need to choose the hidden volume before unhiding it.
    • select volume 1
selecting the Hidden Volume using DiskPart.exe in PowerShell
selecting the Hidden Volume using DiskPart.exe in PowerShell
  • Now,you need to assign the Drive Letter to the hidden drive using the following command:
    • assign letter=N
Assigning Drive Letter to the Hidden Drive using the Diskpart.exe in PowerShell
Assigning Drive Letter to the Hidden Drive using the Diskpart.exe in PowerShell
  • Enter the exit command to exit the diskpart.exe console from the PowerShell.
Exiting the Diskpart.exe application
Exiting the Diskpart.exe application
  • To unhide the drive or volumes,executing the following command:
    • Set-Partition -DriveLetter N -IsHidden $false
Executing the PowerShell command to unhide the volume or drives.
Executing the PowerShell command to unhide the volume or drives.

Method 4a:Hiding Drives using Group Policy Editor:

gpedit.msc is missing
gpedit.msc is missing

This method required Group Policy Editor enabled in your device,if your device says “gpedit.msc Not Found“,download the gpedit.msc.bat file and execute it to enable the group policy editor on your device.

  • You can launch the Group Policy Editor application using the Run Command,to launch the Run window use the following keyboard shortcut:
    • Winkey + R
  • Once the Run window is launched,use the Run Command to launch the Group Policy Editor:
    • gpedit.msc
Launching GP Editor from Run Window
Launching GP Editor from Run Window
  • Go to User Configuration >Administrative Templates >Windows Components >File Explorer.
Navigating into Group Policy Editor
Navigating into Group Policy Editor
  • You need to double-click Hide these specified drives in My Computer option.
Double Clicking Hide these specified drives in My Computer.
Double Clicking Hide these specified drives in My Computer.
  • Now,you need to choose the Enabled option and choose the drive that you need to hide from the drop down.
Choosing the drive to hide from the file explorer.
Choosing the drive to hide from the file explorer.
  • Finally,click the Ok button to confirm the changes.

Note:The Group Policy Editor in Windows provides only a limited set of predefined options for hiding drives (such as restricting drives A,B,C,or D),which unfortunately does not allow you to directly select other drive letters like N or X.

Method 4b:Unhide Drives or Volumes using GP Editor:

  • You can launch the Group Policy Editor application using the Run Command,to launch the Run window use the following keyboard shortcut:
    • Winkey + R
  • Once the Run window is launched,use the Run Command to launch the Group Policy Editor:
    • gpedit.msc
Launching GP Editor from Run Window
Launching GP Editor from Run Window
  • Go to User Configuration >Administrative Templates >Windows Components >File Explorer.
Navigating into Group Policy Editor
Navigating into Group Policy Editor
  • You need to double-click Hide these specified drives in My Computer option.
  • Now,click the Not Configured option and click the OK button to confirm the changes.
Unhide Drives using GP Editor
Unhide Drives using GP Editor

Method 5a:Hide Volumes or Drives using Registry Editor:

  • You can launch the registry editor from Run Window but before that you can use the keyboard shortcut to launch the Run Window:
    • Winkey + R
  • Once the Run window is launched,use the Run Command to launch the Registry Editor:
    • regedit
Launching Registry Editor using Run Window
Launching Registry Editor using Run Window
  • In the registry editor,navigate to the following path:
    • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Navigating to the Explorer Directory in Registry Editor
Navigating to the Explorer Directory in Registry Editor
  • Ignore the existing values and right click on the empty pane choose New > DWORD (32-bit) Value,and name it NoDrives.
  • Once the key file has been created,double click on it and set its value to hide specific drives.
  • For example,setting the value to 4 hides drive D or (Use the binary sum if you need to hide multiple drives,e.g.,4+8 for drives C and D.)
Drive LetterDecimal Value
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
  • Click the OK button and restart your system for changes to take effect. This will hide your drive or volume.

Method 5b:Unhide Volumes or Drives using Registry Editor:

  • You can launch the registry editor from Run Window but before that you can use the keyboard shortcut to launch the Run Window:
    • Winkey + R
  • Once the Run window is launched,use the Run Command to launch the Registry Editor:
    • regedit
Launching Registry Editor using Run Window
Launching Registry Editor using Run Window
  • In the registry editor,navigate to the following path:
    • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Navigating to the Explorer Directory in Registry Editor
Navigating to the Explorer Directory in Registry Editor
  • Delete the DWORD file named as “NoDrives”if exist or else create the New DWORD File and name it as NoDrives.
  • Once the NoDrives DWORD file has been created,double click and set the value to 0 to unhide all drives and volumes on your pc.
  • Click the Ok button and restart your pc to take effect.

Conclusion:

By following these steps,you can effectively hide drives in Windows 11 to protect sensitive files from unauthorized access. Whether you’re concerned about privacy during repairs or simply want to keep personal files hidden,this method allows you to secure your data without deleting or moving anything.

I hope this tutorial has been helpful in enhancing your privacy and security on Windows 11. Feel free to revisit this tutorial whenever you need to hide or unhide drives on your system. Stay safe,and keep your important project files protected! Find more informational tutorial on our Home Page:WinSides.

Why You Can Trust Winsides.com?

We combine expert insights with user-friendly guidance. We thoroughly research and test everything to give you reliable and simple to understand tech guides. Please take a look at our publishing process to understand why you can trust Winsides.

Photo of Narendhiran Vijaykumar

Narendhiran Vijaykumar

I Am a Frontend Developer,and Business Creator With Over 8 Years of Experience in Php and Frontend Web Development. I Have Over 15 Years of Experience Using Windows Os,From Windows Xp to Windows 11,and Possess Sound Knowledge in Using and Solving Real-time Problems. I Am Getting Proficient in Ai-based Technologies and Have Developed 3 Successful Web Apps and Saas Platforms.

Related Articles

Leave a Reply

Your email address will not be published.Required fields are marked *

Back to top button
Close

Adblock Detected

Kindly disable the Adblocker