Prevent Copying Files to USB Drive From Your Computer

Published by: Alex George

Today, one of my friends called me for urgent help. He works as a System Administrator for a small company and wants to prevent copying files from a working computer to USB drives (pen drives). I told him to turn off the USB port and fix the issue. He replied he could not do it due to company policies.

He wants the computer to read files from the USB drive but no file transfer to it from the computer's hard disk.

So, in a nutshell, he wants to read files from the portable storage drive on his company computers but does not want to copy files from his company computer to the USB drive.

He is confused about whether he can block writing files to the portable memory storage without preventing the PC from reading them.



Can I Prevent Someone From Transfering Documents From a PC to a Pen Drive?

We can stop any USB storage Device from copying content from a computer.


We can activate a write protection on USB by Group Policy Editor or Windows Registry.


If we enable Write Protect on Universal Serial Bus, the computer can read files on portable storage but cannot copy the content to them from the hard disk.



Disable Copying Files From Computer to USB Storage Using Group Policy Editor

On Windows 11 and 10 computers, the easiest method to prevent copying to USB storage without preventing reading is to enable "Removable Disks: Deny Write Access" on Local Group Policy Editor.


We can Prevent USB Storage Devices from Copying Files by activating Deny Write Access From the Group Policy Editor.


If you do not know how to do it, follow the instructions.


  1. Press the [Windows] and [R] keys together to start Run.

  2. Type gpedit.msc on Run and press the Enter key.

  3. Click on Administrative Templates.


    How do I stop files from being copied to my USB?
  4. Double-click on System.

  5. Open Removable Storage Access.


    How Do I Prevent Files In Usb From Being Copied in Windows 11?
  6. Double Click on Removable Disks: Deny Write Access.

  7. Select the radio button Enabled and click Apply and OK.


    Prevent copying of data on USB in Windows 11

    Now onward, your Windows computer will not allow copying files to any storage device connected to its USB ports.



We have learned how to prevent copying files from a PC to a Flash Drive from the Group Policy Editor. We can achieve the same goal from the Windows Registry too.




Prevent copying files to USB drive From Hard Disk (Using Reg Editor)

This step tells how to enable write-protect on the USB port from the Windows Registry and prevent the computer from copying content to portable memory storage from the hard disk. This step doesn't hurt your laptop's reading ability.


Your PC can read files in portable storage without any issues.


Steps to prevent the file transfer from hard disk to portable drive are:


  1. Click on the start and go to the Run (Press the Windows and R buttons together to open the Run window).

  2. Type regedit on run window and click OK. Windows 11 will open the Registry Editor.

  3. Before making any changes to the Registry, I recommend you take a backup of the current Registry on your computer.




  4. Go to the location-

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies


  5. Create a DWORD value called ‘WriteProtect‘ and set it to 1.

    Now onwards your PC will be able to just read the files from the external memory drive connected but the drive can no longer copy content from the hard disk (or SSD).

You have successfully activated the write protection on the Windows SSD from the Registry. No USB storage devices can copy content from the computer storage.


To disable write protect on USB drives change the DWORD to 0.


If you wish to remove this feature in the future, you can do it from the Registry.

9 comments:

  1. pulkit9:20 PM

    does it work if the drive is plugged to others computers

    ReplyDelete
  2. Siju George10:39 AM

    Yes, your drive will work in others computers.

    ReplyDelete
  3. Anonymous3:14 AM

    HI, on my computer in control there is not a folder with a name StorageDevicePolices. What did I do wrong?

    please help.

    ReplyDelete
  4. In my computer reg there is no such folder called StorageDevicePolicies. what to do?

    ReplyDelete
  5. @ Dnyanesh

    Which version of Windows you have on your computer ?

    ReplyDelete
  6. Hi, thanks for your reply. I am using win7 and win 10. I followed this method, just needed to creat new key in control. And rest is same.
    Thank you.

    ReplyDelete
  7. @Dnyanesh

    You may try Group Policy Edit instead of Reg Edit. I have added the instructions on the post.

    ReplyDelete
  8. is possible to stop copying files from FLASH drive to computer? if is possible could you please show how

    ReplyDelete
  9. @ Prayertt

    Yes, it is possible. Do you want to prevent copying files from flash drive to a specific computer, or to all computers?

    ReplyDelete

Newer Post Older Post Home