Windows 7下隐藏驱动器(ZZ)

This will show you how to hide or unhide a drive from being displayed in Computer and Windows Explorer in Vista and Windows 7.

By default, all drives are not hidden.

This will only hide or unhide the drive in Vista and Windows 7, and will not prevent access to the drive from say the command prompt or Run command window.

This will not unhide a drive that was not hidden by this method.

EXAMPLE: The D drive set to Unhide and Hide in Computer
NOTE: Open the Start menu and click on the Computer button to see this.

20141213_1
20141213_2

METHOD ONE


Using the Local Group Policy Editor

NOTE: For more drive letter options, see Method Three below.

  1. Open the all users, specific users or groups, or all users except administrators Local Group Policy Editor for how you want this policy applied.

  2. In the left pane, click on User Configuration, Administrative Templates, Windows Components, and Windows Explorer.

    20141213_3

  3. In the right pane, right click on Hide these specified drives in My Computer and click on Properties.

  4. To Unhide All Drives

    • Select (dot) Disabled or Not Configured and click on OK. (See screenshot below step 5C)
    • Go to step 6.
  5. To Hide a Drive or Combination of Drives
    • Select (dot) Enabled.
    • Click on the drop down arrow and select the drive or combination of drives option that you want to set as restricted (hidden). (See screenshot below)
      NOTE: Even though the options say Restrict, it is to Hide the drive(s).
    • Click on OK.

      20141213_4

  6. Close the Local Group Policy Editor window. Your done.

METHOD TWO


Manually in Registry Editor

  1. Open the Start Menu, then type regedit in the search box and press Enter.

  2. If prompted by UAC, then click on the Continue (Vista) or Yes (Windows 7)..

  3. In regedit, navigate to the location below.

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

    20141213_5

  4. To Hide a Drive or Combination of Drives

    1. In the right pane of Explorer, right click on a empty area, click on New and DWORD (32-bit) Value, and type NoDrives and press Enter.
    2. Right click on NoDrives, and click on Modify.

    20141213_6

    1. Type in the drive option hex or decimal number below in bold you want to set as restricted, and click on OK. (See screenshot below)

      Tip:
      To hide multiple drive letters, add the decimal numbers together for each drive letter below that you want to hide, , select (dot) Decimal or Hex for the type of numbers you used, enter that number, and click on OK.

      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).

    Drive Letter Decimal Hex
    A 1 1(1)
    B 2 2(10)
    C 4 4(100)
    D 8 8(1000)
    E 16 10(1 0000)
    F 32 20(10 0000)
    G 64 40
    H 128 80
    I 256 100
    J 512 200
    K 1024 400
    L 2048 800
    M 4096 1000
    N 8192 2000
    O 16384 4000
    P 32768 8000
    Q 65536 10000
    R 131072 20000
    S 262144 40000
    T 524288 80000
    U 1048576 100000
    V 2097152 200000
    W 4194304 400000
    X 8388608 800000
    Y 16777216 1000000
    Z 33554432 2000000
    All Drives 67108863 3ffffff
    • 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)
    1. The registry will now look like this.

    2. Go to step 6.

  5. To Unhide All drives

    1. In the right pane of Explorer, right click on NoDrives and click on Delete. (See screenshot above)
    2. Click on Yes to confirm delete.
  6. Close regedit.

  7. Log off and log on, or restart the computer to apply changes.

OTHER METHODS


Hide A Hard Drive or Partition: Command Prompt

This is one of the easiest options to hide drives in Windows. Open the command prompt to start the process. The easiest way is to press Windows-R, type cmd and hit enter.

Now enter diskpart into the command prompt and hit enter. This may display an User Account Control prompt, make sure to allow it by selecting Yes. Diskpart is the built-in Disk Partitioning program in Windows.

It is a good idea to display a list of all partitions on the drive. To do that enter list volume in the prompt and press enter.

20141213_21

Locate the hard drive that you want to hide and select it in the command prompt. This can be done with the command select volume number, e.g. select volume 4 to select the fourth volume.

You can now use the command remove letter to hide the partition in the operating system. For the above example, remove letter e would remove the drive e from the operating system. The drive becomes inaccessible in Windows Explorer and other programs.

20141213_22

To unhide a drive use the command assign letter, in this case assign letter e. The drive becomes immediately accessible again in Windows.

Software to hide drives in Windows

numerous programs are available to hide drives and partitions in Windows. One of the most convenient applications is the portable software DriveMan.

20141213_23

Simply right-click the drive that you want to hide after starting DriveMan and select Hide Selected Drive from the context menu.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注