Windows Vista Forums

Drive Access - Restrict or Unrestrict

  1. #1
    <!-- google_ad_section_start -->Drive Access - Restrict or Unrestrict<!-- google_ad_section_end -->

    Drive Access - Restrict or Unrestrict
    How to Restrict or Unrestrict Drive Access in Vista and Windows 7
    Published by Brink is offline
    25 May 2008
    Drive Access - Restrict or Unrestrict

    How to Restrict or Unrestrict Drive Access in Vista and Windows 7

    information   Information
    This will show you how to restrict all access (open or save) to all content of a drive or combination of drives that you select for all users on the computer.


    All drives are set to be unrestricted by default in Vista and Windows 7.
    Note   Note

    • When a drive is set as restricted, users can only browse through the drives directory in the Navigatoin Pane folder tree in Windows Explorer by clicking on the arrows to expand the folders. They will not be able to open a folder though in Windows Explorer. (See example below)
    • If you would also like to hide or unhide this drive(s) in Computer and Windows Explorer, then see: How to Hide or Unhide a Drive in Vista
    warning   Warning
    This will not prevent users from using 3rd party programs to access restricted local and network drives. It also does not prevent administrators from using Disk Management to view and change restricted drive characteristics.
    EXAMPLE: Windows Explorer Computer with Navigation Pane
    NOTE: Even when the drive is set as restricted, it will still be displayed in Computer. All users will not be able to access it though. They can only view the directory in the Navigation Pane folder tree.
    Drive Access - Restrict or Unrestrict-computer.jpg
    EXAMPLE: Displayed Error Message when a Drive is Restricted
    NOTE: This is the error message a user will get when they try to open or save (access) anything to a restricted drive.
    Drive Access - Restrict or Unrestrict-error_message.jpg




    METHOD ONE

    Using the Local Group Policy Editor

    NOTE: For more drive letter options, see the 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. (See screenshot below)
    Drive Access - Restrict or Unrestrict-group_policy.jpg
    3. In the right pane, right click on Prevent access to drives from My Computer and click on Properties. (See screenshot above)

    4. To Unrestrict All Drives Access
    A) Select (dot) Disabled or Not Configured and click on OK. (See screenshot below step 5C)

    B) Go to step 6.
    5. To Restrict a Drive or Combination of Drives Access
    A) Select (dot) Enabled. (See screenshot below step 5C)

    B) Click on the drop down arrow and select the drive or combination of drives option that you want to set as restricted. (See screenshot below step 5C)
    WARNING: Be careful of what you select. A restricted drive cannot be accessed by any users on the computer. This could be a problem if you need access to it.

    C) Click on OK. (See screenshot below)
    Drive Access - Restrict or Unrestrict-properties.jpg
    6. Close the Local Group Policy Editor window. Your done.





    METHOD TWO

    Using a REG File Download

    NOTE: Which ever one REG file you choose to use, it will overide all of the others. For more drive letter options, see the Method Three below.
    1. To Restrict A and B drives only
    A) download

    B) Go to step 8.
    2. To Restrict C drive only
    A) download

    B) Go to step 8.
    3. To Restrict D drive only
    A) download

    B) Go to step 8.
    4. To Restrict A, B, and C drives only
    A) download

    B) Go to step 8.
    5. To Restrict A, B, C, and D drives only
    A) download

    B) Go to step 8.
    6. To Restrict All drives
    A) download

    B) Go to step 8.
    7. To Unrestrict All drives (Do not restrict drives)
    A) download
    8. Click on Save, and save the .reg file to the Desktop.

    9. Right click on the downloaded .reg file and click on Merge.

    10. Click on Run, Continue (UAC-Vista) or Yes (Windows 7), Yes, and then OK when prompted.

    11. When done, you can delete the downloaded .reg file if you like.

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




    METHOD THREE

    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: (See screenshot below)
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
    Drive Access - Restrict or Unrestrict-reg1.jpg
    4. To Restrict a Drive or Combination of Drives Access
    A) In the right pane of Explorer, right click on a empty area and click on New and DWORD (32-bit) Value. Type NoViewOnDrive and press Enter. (See screenshot below)

    B) Right click on NoViewOnDrive and click on Modify.
    Drive Access - Restrict or Unrestrict-reg2.jpg
    C) Type in the drive option below in bold you want to set as restricted and click on OK. (See screenshot below)
    NOTE: You can also dot Decimal and use one of these numbers for the drive with that letter you want to Restrict: 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 to Restrict D drive only.

    • Restrict A and B drives only - type 3
    • Restrict C drive only - type 4
    • Restrict D drive only - type 8
    • Restrict A, B, and C drives only - type 7
    • Restrict A, B, C, and D drives only - type f
    • Restrict all drives - type 3ffffff
    Drive Access - Restrict or Unrestrict-modify.jpg
    D) The registry will now look like this. (See screenshot below)
    Drive Access - Restrict or Unrestrict-reg3.jpg
    E) Go to step 6.
    5. To Unrestrict All drives (Do not restrict drives)
    A) In the right pane of Explorer, right click on NoViewOnDrive and click on Delete. (See screenshot above)

    B) Click on Yes to confirm delete.
    6. Close regedit.

    7. Log off and log on, or restart the computer to apply changes.
    That's it,
    Shawn



    Related Tutorials


    Published by


    Brink's Avatar
    Administrator

    Join Date: Apr 2007
    Location: Texas, USA
    Posts: 31,222
    Array

    Tutorial Tools


    Applies to

    All Vista Versions
    64 Bit & 32 Bit


  2.   


  3. #1



    Newbie
    Join Date : Jun 2008
    Posts : 3
    Vista Ultimate x64
    Local Time: 08:15 PM

    Re: Drive Access - Restrict or Unrestrict

    i do these for a administrator account it works fine but when changed it to standard user everything is locked automatically (3fffff).
    could you please help me?
    Tnanks

      My System SpecsSystem Spec

  4.   


  5. #2
    Brink's Avatar

    Administrator


    Join Date : Apr 2007
    Texas, USA
    Posts : 31,222
    64-bit Windows 8.1 Enterprise (RTM)
    Local Time: 09:15 PM
    usa us texas

      Thread Starter

    Re: Drive Access - Restrict or Unrestrict

    Hi Skhoshbinfar,

    Welcome to Vista Forums.

    You will only be able to make these changes while logged on to an administrator account or while running regedit with Run as administrator and provide the administrator password in a Standard account.

    Do you have access to the drives from the Standard account when you have them set as unrestricted from the administrator account?

    Shawn

      My System SpecsSystem Spec

  6. #3



    Newbie
    Join Date : Jun 2008
    Posts : 3
    Vista Ultimate x64
    Local Time: 08:15 PM


     

    Re: Drive Access - Restrict or Unrestrict

    Hi Shawn
    thnaks, when i run regedit through administrator account setting just for admin user appears which i st it before not for current standard user, so it remains with 3fffff so no drive could be opened!

      My System SpecsSystem Spec

  7. #4
    Brink's Avatar

    Administrator


    Join Date : Apr 2007
    Texas, USA
    Posts : 31,222
    64-bit Windows 8.1 Enterprise (RTM)
    Local Time: 09:15 PM
    usa us texas

      Thread Starter

    Re: Drive Access - Restrict or Unrestrict

    Skhoshbinfar,

    Since you have the Ultimate edition, try using Method One step 6 to unrestrict the drives. If it is already set to Not Configured, then dot Disabled and click Apply and dot Not Configured again and click OK to toggle it to reset the restriction settings.

    Shawn

      My System SpecsSystem Spec

  8. #5



    Newbie
    Join Date : Jun 2008
    Posts : 3
    Vista Ultimate x64
    Local Time: 08:15 PM


     

    Re: Drive Access - Restrict or Unrestrict

    Hi,
    My main problem is i gonna to set one user to access for example D drive and other dont. also pc has only one admin account. could you tell how to configure registry to do this job?
    Tnx

      My System SpecsSystem Spec

  9. #6
    Brink's Avatar

    Administrator


    Join Date : Apr 2007
    Texas, USA
    Posts : 31,222
    64-bit Windows 8.1 Enterprise (RTM)
    Local Time: 09:15 PM
    usa us texas

      Thread Starter

    Re: Drive Access - Restrict or Unrestrict

    Sorry Skhoshbinfar,

    You cannot restrict a drive for one user using this method.

    However, you can change the permission on the drive to deny permission to a user. Option One in this tutorial will show you how to. It is the same for a drive as a folder. Add the user (step 14) you want to restrict, and check all of the Deny boxes (step 18) instead of Allow.

    Folder Permissions

    Hope this helps,
    Shawn

      My System SpecsSystem Spec

  10. #7



    Newbie
    Join Date : Aug 2008
    Posts : 2
    Vista Home Premium
    Local Time: 07:15 PM


     

    Re: Drive Access - Restrict or Unrestrict

    How does one change a drive's attribute from read only? I want to transfer some photos from my old computer to the new one and I have a USB cable that connects the two computers to do. But it tells me that the drive in question is read only. Thanks for any help.

      My System SpecsSystem Spec

  11. #8
    Brink's Avatar

    Administrator


    Join Date : Apr 2007
    Texas, USA
    Posts : 31,222
    64-bit Windows 8.1 Enterprise (RTM)
    Local Time: 09:15 PM
    usa us texas

      Thread Starter

    Re: Drive Access - Restrict or Unrestrict

    Hi Starwing,

    See if taking ownership of the drive and giving yourself full permission will allow you to. This tutorial will show you how to.

    Take Ownership of file

    Hope this helps,
    Shawn

      My System SpecsSystem Spec

  12. #9



    Newbie
    Join Date : Jul 2008
    San Diego
    Posts : 2
    Vista x32 Ultimate SP1
    Local Time: 07:15 PM
    usa us california

     

    Re: Drive Access - Restrict or Unrestrict

    So if I do this to the partition containing my OS it wont allow any other programs to install there? Which is what I want.
    Thanks.

      My System SpecsSystem Spec

Page 1 of 3 123 LastLast

Drive Access - Restrict or Unrestrict
Similar Threads
Tutorial Category
How to allow server access but restrict internet access? Vista networking & sharing
How do I restrict access to or share folders? Vista General
how to restrict USB access? Vista General
Restrict access to unsecured networks Vista networking & sharing
Help restrict access to folders to non-administrators Vista General