How to prevent access to a Drive using Registry Editor and Disk Management?

Today’s life completely depends on the Computer and Internet. Most of the data and documents whether its important or non-important are stored in the computer. But, sometimes it can be risky if any outsider get to access the documents. To prevent such type of risky situation or to avoid the access of the computer drives to any outsider you need to disable the access of drives. Here is the tutorial to prevent access to a drive using Registry Editor and Disk Management.

access denied to drive

You can also prevent others from copying data from your PC onto a USB storage device by disabling the access of your drive.

Prevent Access to a Drive using Disk Management

Preventing access to a drive using Disk Management prevents software like Ashampoo from accessing your drives. Ashampoo is a type of software which can access the drive even if you have disabled the access to your drive. To prevent access to a drive using Disk Management, follow the steps laid below.

  • Go to Start and click on Run or you can directly open Run dialog by pressing the windows button and R together or right-click on My computer and select Manage.
  • Open the Disk Management Console by typing diskmgmt.msc  into the Run dialog box and press ENTER or directly from the computer management.

computer manage

  • Select the Drive you want to disable the access. All the Drives in the storage devices connected to your computer will be listed here. Select the drive and right click on it.
  • Select the option Change Drive Letter and Paths and remove the drive letter assignment

change drive

  • Click “Remove” from the dialog box that opens and then “Yes” if prompted by UAC for confirmation for removing the drive.

remove drive

The above mentioned instruction will prevent everyone from accessing the drive for read or write purposes.

Prevent access to select drives using Registry Editor

  • Go to start and open the Run dialog box
  • Type regedit to open the Registry Editor
  • Search for HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

disable drive access regedit create

  • Now right-click on the right pane and select New and then DWORD (32-bit) Value and name it NoViewOnDrive
  • Find the values of the drives you want to prevent access to. Now add these values together. For example, if you want to prevent access to D drive(8) and F drive(32) you will have 8+32 = 40
  • Double Click on the NoViewOnDrive DWORD and after selecting Decimal radio button, paste the added value.

disable drive access

Upon completion you can close the registry editor. The settings take effect immediately. If this doesn’t take effect try restarting windows explorer. Next time when you try to access one of the drives you will encounter and error message The operation has been cancelled due to restriction in effect on this computer.


No comments yet.

Leave a Comment