如果您是Windows用户,您可能知道隐藏或锁定包含机密数据的文件夹或文件。我们通常使用一些文件夹加密软件(folder encryption software)来完成这些任务。但是,如果您有很多这样的文件夹和文件,锁定每个文件夹并不是一个好主意。更好的选择是将您想要隐藏或不希望其他人知道其存在的所有此类文件和文件夹移动到您 PC 上的某个驱动器。然后,隐藏整个驱动器(hide that entire drive),使其对任何人都不可见。
该隐藏驱动器不会在Windows 文件资源管理器(Windows File Explorer)中看到,但可以通过命令提示符或在(Command Prompt)资源管理器(Explorer)的地址栏中键入驱动器号来访问。因此,当有人使用您的 Windows PC 时,他们并不知道您的 PC 中存在这样的驱动器,并且您的机密数据是安全的。这可以在Windows 11/10/8/7/Vista中完成。我将指导您完成Windows 8(Windows 8)、Windows 10 和 Windows 11中要遵循的步骤。
在 Windows 11/10 中隐藏驱动器
在Windows 11(Windows 11)和Windows 10中有 5 种方法可以隐藏驱动器。它是通过磁盘管理(Disk Management)、使用组策略(Group Policy)、通过Windows 注册表或在(Windows Registry)CMD中使用Diskpart命令。我们将逐步了解这些方法,以便您可以实施相同的方法来隐藏Windows 11/10中的驱动器。
- 使用磁盘管理隐藏驱动器
- 使用组策略隐藏驱动器
- 使用 Windows 注册表隐藏驱动器
- 使用 CMD 隐藏驱动器
- (Hide Drive)使用免费工具HideCalc隐藏驱动器。
1]使用磁盘管理隐藏驱动器
如果您想通过磁盘管理在(Disk Management)Windows 8中隐藏驱动器,您需要右键单击我的电脑(My Computer ),然后单击管理。(Manage. )
在计算机管理控制台(Computer Management Console)中双击打开存储(Storage )。
现在,双击Disk Management Snap-in。
磁盘管理控制台(Disk Management Console)打开,您可以看到您 PC 的所有驱动器。
选择(Choose)要隐藏的驱动器并右键单击它。选择(Choose)“更改字母和路径”(Change Letter and Paths’),然后单击“删除(Remove )”按钮。
如果它要求确认,请说“是”。现在,您无法在My Computer中看到隐藏的驱动器。
阅读(Read):如何在 Windows 11/10 中更改驱动器号。
2]使用组策略隐藏驱动器
运行(Run)gpedit.msc 并导航到以下设置:
User Configuration/Administrative Templates/Windows Components/File Explorer
双击在我的电脑中隐藏这些指定的驱动器(Hide these specified drives in My Computer)并选择启用。
This policy setting allows you to hide these specified drives in My Computer. This policy setting allows you to remove the icons representing selected hard drives from My Computer and File Explorer. Also, the drive letters representing the selected drives do not appear in the standard Open dialog box. If you enable this policy setting, select a drive or combination of drives in the drop-down list. 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. Also, this policy setting does not prevent users from using programs to access these drives or their contents. And, it does not prevent users from using the Disk Management snap-in to view and change drive characteristics. If you disable or do not configure this policy setting, all drives are displayed, or select the “Do not restrict drives” option in the drop-down list.
保存并退出。
阅读(Read):如何在驱动器名称之前先显示驱动器号(How to Show Drive Letters first before Drive Names)。
3]使用Windows注册表(Windows Registry)隐藏驱动器(Hide Drive)
在第二种方式中,我们将使用 NoDrives 注册表项来隐藏Windows 8中的驱动器。当我们向注册表添加密钥时,我建议您备份注册表。完成后,继续!
按Windows Key+ R,键入“ regedit”并按Enter 键(Enter)。注册表编辑器控制台(Registry Editor Console)打开。导航(Navigate)到以下路径,
HKEY_LOCAL_MACHINE > Software > Microsoft > Windows > CurrentVersion >Explorer
在这里,我们将创建一个新的DWORD值,因此右键单击资源管理器(Explorer )并选择New -> DWORD Value (32-bit).
将名称命名为“NoDrives”并双击它以更改属性。现在,控制台打开,我们需要输入值。在值(Value)数据中,根据要隐藏的驱动器选择一个。每个驱动器号都有唯一的值,值如下,
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: 67108863
为驱动器选择(Choose)相应的值并在“数值数据”中输入该值。为基本(Base)部分选择(Choose)“十进制”。(Decimal)当我想隐藏时,驱动“G”,我输入的值是“64”。
如果要隐藏两个驱动器,例如“E”和“G”,您可以输入一个值作为“80”(E = 16和G = 64),它会隐藏两个驱动器。
现在重新启动您的计算机和隐藏的驱动器。如果您应该取回驱动器,请将值更改为零(Zero),或者您甚至可以删除“NoDrives”注册表项。
4]使用CMD隐藏驱动器
- 打开提升的命令提示符,键入
Diskpart
并按 Enter。 - 键入
List Volume
并按 Enter。 - 现在输入 select 和数字对着Drive的字母(例如它可能是G Drive),你想隐藏。例如,它可能是
Select Volume 6
. - 点击输入。
- 最后,输入
Remove Letter G
- 点击输入。
您将看到一条消息 – Diskpart 成功删除了驱动器号或安装点。(Diskpart successfully removed the drive letter or mount point.)
使用 CMD 显示隐藏的驱动器
- 打开提升的命令提示符,键入
Diskpart
并按 Enter。 - 键入
List Volume
并按 Enter。 - 现在键入 select 和数字对Drive的字母(例如,它可能是G Drive),您要隐藏它。例如,它可能是
Select Volume 6
. - 点击输入。
- 现在键入
Assign Letter D
并按 Enter。 - 这将在Explorer中显示驱动器。
5]使用免费工具HideCalc隐藏驱动器(Hide Drive)
HideCalc是一款适用于(HideCalc)Windows的免费工具,可让您在Windows中轻松隐藏磁盘驱动器 - 以及更多功能!它允许您:
- 导出到ADMX 组策略(ADMX Group Policy)模板
- 导出到ADM 组策略模板(ADM Group Policy Templates)
- 导出 Kix 脚本。
- 导出 Powershell 脚本。
- 导出到 .REG 文件。
- 隐藏您指定的驱动器。
阻止您指定的驱动器。一些旧版应用程序文件管理器将撤消隐藏驱动器设置(Hide Drive Setting),如果这样做会停止访问。
运行HideCalc不会改变注册表中的任何内容。它创建的数据文件将在执行时进行更改。在这里下载(Download it here)。
如何隐藏系统驱动器?
Windows 11/10 PC中隐藏系统驱动器有多种方法。隐藏驱动器的最有效方法是使用磁盘管理(Disk Management)控制台。您可以删除所需驱动器的驱动器号,以防止它在文件资源管理器(File Explorer)中显示。或者,您可以使用本地组策略编辑器(Local Group Policy Editor)隐藏Windows计算机上的任何驱动器。
如何在Windows 11/10中找到隐藏的驱动器?
这取决于您在Windows 11/10 PC 中隐藏驱动器的方法。例如,如果您使用第一种方法,则需要打开磁盘管理(Disk Management)控制台并分配驱动器号。同样,如果您使用GPEDIT方法,则需要打开本地组策略编辑器(Local Group Policy Editor)并还原更改。
如何在Windows 11/10中隐藏驱动器而不丢失数据?
您可以使用本文中提到的五种方法中的任何一种在Windows 11/10中隐藏驱动器而不会丢失数据。无论是系统驱动器还是任何其他驱动器,您都可以使用磁盘管理(Disk Management)、命令提示符(Command Prompt)、注册表编辑器(Registry Editor)、本地组策略编辑器(Local Group Policy Editor)等隐藏它。
这些是您可以在Windows 11/10中本机隐藏驱动器的 5 种方法。
How to hide a Drive in Windows 11/10
If you are a Windows user, yоυ would probably know abоut hiding or locking a folder or file which has confidential data. We generally, use some folder encryption software to do these tasks. But, if you have many such folders and files, it is not a good idea to lock each and every folder. A better option would be to move all such files and folders which you want to hide or do not want others to know about their existence, to some drive on your PC. Then, hide that entire drive so that it is not visible to anyone.
That hidden drive will not be seen in Windows File Explorer but can be accessed through a Command Prompt or by typing the drive letter in the address bar of Explorer. So, when someone uses your Windows PC, they do not know that there is such a drive existing in your PC and your confidential data is safe. This can be done in Windows 11/10/8/7/Vista. I will guide you through the steps to be followed in Windows 8, Windows 10, and Windows 11.
Hide a Drive in Windows 11/10
There are 5 ways to hide a drive in Windows 11 and Windows 10. It is through Disk Management, using Group Policy, through Windows Registry, or by using Diskpart command in CMD. We will see these ways step by step so that you can implement the same to hide a drive in Windows 11/10.
- Hide Drive using Disk Management
- Hide drive using Group Policy
- Hide Drive using Windows Registry
- Hide Drive using CMD
- Hide Drive using free tool HideCalc.
1] Hide Drive using Disk Management
If you want to hide a drive in Windows 8 through Disk Management, you need to right-click on My Computer and then click Manage.
In Computer Management Console open Storage by double-clicking on it.
Now, double-click on Disk Management Snap-in.
Disk Management Console opens up, and you can see all drives of your PC.
Choose the drive which you want to hide and right-click on it. Choose ‘Change Letter and Paths’ and click on Remove button.
If it asks for confirmation, say ‘Yes’. Now, you cannot see the hidden drive in My Computer.
Read: How to change Drive letter in windows 11/10.
2] Hide drive using Group Policy
Run gpedit.msc and navigate to the following settings:
User Configuration/Administrative Templates/Windows Components/File Explorer
Double-click Hide these specified drives in My Computer and select Enabled.
This policy setting allows you to hide these specified drives in My Computer. This policy setting allows you to remove the icons representing selected hard drives from My Computer and File Explorer. Also, the drive letters representing the selected drives do not appear in the standard Open dialog box. If you enable this policy setting, select a drive or combination of drives in the drop-down list. 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. Also, this policy setting does not prevent users from using programs to access these drives or their contents. And, it does not prevent users from using the Disk Management snap-in to view and change drive characteristics. If you disable or do not configure this policy setting, all drives are displayed, or select the “Do not restrict drives” option in the drop-down list.
Save and exit.
Read: How to Show Drive Letters first before Drive Names.
3] Hide Drive using Windows Registry
In this second way, we will use the NoDrives registry key to hide a drive in Windows 8. As we add a key to the registry, I suggest you take the backup of your registry. Once it is done, proceed!
Press Windows Key+ R, type ‘regedit’ and hit Enter. The Registry Editor Console opens up. Navigate to the below path,
HKEY_LOCAL_MACHINE > Software > Microsoft > Windows > CurrentVersion >Explorer
Here we are going to create a new DWORD value, so right-click on Explorer and choose New -> DWORD Value (32-bit).
Give the name as ‘NoDrives’ and double click on it, to change the properties. Now, the console opens where we need to enter values. In Value data, choose the one based on the drive you want to hide. Each drive letter has unique value and values are as below,
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: 67108863
Choose the corresponding value for the drive and enter that value in ‘Value data’. Choose ‘Decimal’ for the Base section. As I want to hide, drive ‘G’, I am entering the value as ‘64’.
If you want to hide two drives, say for example ‘E’ and ‘G’, you can enter value one value as ’80’ (E = 16 and G = 64) and it hides both the drives.
Restart your computer and your drive in hidden now. If you are supposed to get the drive back, change the value to Zero, or you can even delete the ‘NoDrives’ registry key.
4] Hide Drive using CMD
- Open an elevated command prompt, type
Diskpart
and hit Enter. - Type
List Volume
and hit Enter. - Now type select and the numeral against the letter of the Drive (e.g. it could be G Drive), which you want to hide. For instance, it could be
Select Volume 6
. - Hit Enter.
- Finally, type
Remove Letter G
- Hit Enter.
You will see a message – Diskpart successfully removed the drive letter or mount point.
Show the hidden drive using CMD
- Open an elevated command prompt, type
Diskpart
and hit Enter. - Type
List Volume
and hit Enter. - Now type select and the numeral against the letter of the Drive (e.g.,. it could be G Drive), which you want to hide. For instance, it could be
Select Volume 6
. - Hit Enter.
- Now type
Assign Letter D
and hit Enter. - This will show the drive in Explorer.
5] Hide Drive using free tool HideCalc
HideCalc is a free tool for Windows that lets you hide disk drives in Windows easily – and more! It allows you to:
- Export to ADMX Group Policy templates
- Export to ADM Group Policy Templates
- Export for Kix Scripts.
- Export for Powershell Scripts.
- Export to a .REG file.
- Hides Drives that you specify.
Prevents Drives that you specify. Some legacy applications file manager will undo the Hide Drive Setting, this stops access if it does.
Running HideCalc will not alter anything in your Registry. It is the data files it creates that will make changes when executed. Download it here.
How can I hide a system drive?
There are different ways to hide a system drive in Windows 11/10 PC. The most efficient way to hide a drive is by using the Disk Management console. You can remove the drive letter of your desired drive to prevent it from being visible in the File Explorer. Alternatively, you can use the Local Group Policy Editor to hide any drive on your Windows computer.
How do I find hidden drives in Windows 11/10?
It depends on which method you used to hide your drive in Windows 11/10 PC. For example, if you used the first method, you need to open the Disk Management console and assign a drive letter. Similarly, if you used the GPEDIT method, you need to open the Local Group Policy Editor and revert the change.
How do I hide a drive in Windows 11/10 without losing data?
You can use any of the five methods mentioned in this article to hide a drive in Windows 11/10 without losing data. Whether it is a system drive or any other drive, you can hide it using Disk Management, Command Prompt, Registry Editor, Local Group Policy Editor, etc.
These are the 5 ways you can hide a drive natively, in Windows 11/10.