Prevent copying of files to USB drive

There are times when you want to prevent others from copying your data but you still need them to be able to view it on your computer. The following tip will help you do exactly that.

As always it is the registry that comes to your rescue. Open the Registry Editor by typing regedit in RUN (WIN+R) dialog (more keyboard shortcuts). Go to th key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
StorageDevicePolicies

Protect files from being copied to USB device, registry key

Create a new DWORD named WriteProtect (Right Click on right pane and select New»DWORD). Edit the value and make it 1. Just restart Windows explorer and you are done. Next time somebody tries to copy data to the external storage device they will see

Can't copy to Mass storage device error

If you need to copy something just make the stored value of WriteProtect to 0

**Tips : to restart Windows Explorer take Shutdown. Click Cancel while holding down SHIFT+CTRL+ALT, this will close Windows Explorer. Now take TASK MANAGER by pressing ALT+CTRL+DEL take File>>New Task>> [ explorer ] and press Enter. **

Buy me a cup of hot coffee - help me keep posting all through the night

If you are new here you may want to subscribe to this blogs full feed RSSSubscribe to full feed RSS of this blog
so that you will get the updates automatically to your feed reader.

Tags: , , ,

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

RSS feed | Trackback URI

17 Comments »

Comment by vishwaNo Gravatar
2008-03-27 12:19:05

You helped me a lot through this code, Could you please tell me the thing that how can i prevent copy even from the USB.

Thnx

Comment by AjithNo Gravatar
2008-03-31 10:07:16

Hi Vishwa,
as far as data copying is concerned I cannot tell any specific ways. The only thing practical is disable USB from hardware manager. Or there is an option to disable drives from registry. Please read this to know how to prevent access to drives in Registry.

 
 
Comment by AnandNo Gravatar
2008-07-22 13:23:20

Hi, this key works fine in XP PRO, but how do i make this work in windows2000 professional

Comment by AjithNo Gravatar
2008-07-22 16:15:40

Hi Anand,
thanks for the comment. I haven’t seen a system with Windows 2000 in ages since I am a student. So I do not have a clear cut solution.
Although I tried searching.. I couldn’t find it.
But, I will try to get you an answer by this week. So don’t be disappointed.
BTW please try the following method I had posted earlier.
Setting Access permission to folders in Windows - Linux style

Comment by AnandNo Gravatar
2008-07-22 16:50:28

Hi Ajith,

Thanks for the quick reply, i will await your response with respect to win2k tweaking.

Regards, Anand

(Comments wont nest below this level)
Comment by S AnandNo Gravatar
2008-07-28 13:08:59

Hello Ajith: Any good news!

Comment by AjithNo Gravatar
2008-07-28 14:06:43

Hi Anand..
Good news and bad news..

I found a way.. but I couldn’t try it on any Win 2000 system..

The method is through management of removable devices.. I will post about it tomorrow..

 
 
 
 
 
Comment by S AnandNo Gravatar
2008-08-01 12:12:43

Hi Ajith:

any Luck?

 
Comment by S AnandNo Gravatar
2008-08-07 09:55:52

Hi Ajith: Just following on the Win2K disabling?

 
Comment by S AnandNo Gravatar
2008-08-14 10:24:32

Dear Ajith: Any Luck? Tried few tricks it did not work.

Regards, Anand

Comment by AjithNo Gravatar
2008-08-17 11:23:03

Well Anand it is real hard to find out something for 2000. I couldn’t even get my hands on one 2000 machine yet… sorry

 
 
Comment by rajatNo Gravatar
2008-09-16 17:59:45

ajith,you are supercool mate.My problem is that somebody has restricted copying of files from my dvd drive and from usb drives.please help me .

Comment by AjithNo Gravatar
2008-09-17 11:28:57

Hi Rajat.. ;) Can you send me some screen shots of errors shown when you try to sopy something from USB. Send them to ajithonly at gmail.com

 
 
Comment by G.ONo Gravatar
2008-10-16 16:37:24

any lock on vista (no pun intended); should work tho’ since vista is just an XP SP4 - my hdd is basically a server for all the lazy guys who come to rip me off my hard day’s job downloading all kinds of stuff.

Comment by AjithNo Gravatar
2008-10-16 19:22:46

Please put your real email if you like to get replies to your mail also

 
 
Comment by G.ONo Gravatar
2008-10-16 16:38:53

can we apply this to individual folders?

Comment by AjithNo Gravatar
2008-10-16 19:19:20

Hi G O please try the method mentioned here

http://www.exnol.com/windows/get-access-to-all-folders-in-windows-like-linux

You can also use this method to prevent access to a folder… Please contact me if you have any problem with this method

 
 
Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Trackback responses to this post



My Google  Netvibes  My Yahoo!  Windows Live  Bloglines  Newsgator