Prohibit copying files from your PC to a USB key

block copying of files to any usb device
block copying of files to any usb device

Today I am going to introduce you to a very simple trick that applies to all Windows versions.

If like me, you don't like that a user of your computer can steal confidential information and files from you while you are away, then you can simply block the copying of files from your PC to a USB device.

 To do this, nothing could be simpler, just go to the registry editor, and add a key.

  • Click on the start button then perform and enter the command regedit
  • In the registry editor, go to HKEY_LOCAL_MACHINE> SYSTEM> CurrentControlSet> Control.


  • After click on the menu Edit> New> Key.  Name this key StorageDevicePolicies.


  • Likewise, add a new 32-bit DWORD value to this key. To do this, click on the menu EditionNew > 32-bit DWORD value that you will name WriteProtect.


  • Now, you have to modify its value with a double click, enter "1" and validate
    knowing that :
    - 0 authorizes the transfer
    - 1 forbids transfer


Now all you have to do is connect a USB key, an external hard drive, or memory card, and try to copy a file to it to get a prohibition message. You have of course the possibility of making the copy possible by modifying the DWORD value to 0 instead of 1.