Search This Blog

Total Pageviews

Monday, December 31, 2012

How can I prevent users from writing to USB removable disks (USB flash drives)?


How can I prevent users from writing to USB removable disks (USB flash drives)?


USB removable disks (also known as flash drives or "Disk on Key" and other variations) are quickly becoming an integral part of our electronic life, and now nearly everybody owns one device or another, in forms of small disks, external hard drives that come enclosed in cases, card readers, cameras, mobile phones, portable media players and more.
Portable USB flash drives are indeed very handy, but they can also be used to upload malicious code to your computer (either deliberately or by accident), or to copy confidential information from your computer and take it away.
Microsoft has introduced some changes into Windows XP Service Pack 2 that allow an administrator some control over how USB Removable Disks (or flash drives) are handled. A new storage device policy named WriteProtect makes it possible to prevent all removable USB drives from being written to. Users can still read from these devices, but are not longer able to write to them.
This tweak will only work in Windows XP SP2 and above.

Block writing to USB Removable Disks

To block your computer's ability to use USB Removable Disks follow these steps:
  1. Open Registry Editor.
  2. In Registry Editor, navigate to the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
  1. Create the following value (DWORD):
WriteProtect
and give it a value of 1.
Note: As always, before making changes to your registry you should always make sure you have a valid backup. In cases where you're supposed to delete or modify keys or values from the registry it is possible to first export that key or value(s) to a .REG file before performing the changes.
  1. Close Registry Editor. You do not need to reboot the computer for changes to apply.
Users trying to write to any USB Removable Disk will now get an Access Denied message.

Enable writing to USB Removable Disks

To return to the default configuration and enable your computer's ability to use USB Removable Disks follow these steps:
  1. Go to the registry path found above.
  1. Locate the following value:
WriteProtect
and give it a value of 0.
You can download a .REG file that configure this setting right HERE (1kb).

Further Reading

You may find these related articles of interest to you:

4 comments:

  1. Thank you a lot fοr sharing thiѕ with all peoplе yοu
    actually realize what yоu're speaking approximately! Bookmarked. Please additionally consult with my website =). We can have a link trade arrangement among us
    Check out my site - laptop repair frederick

    ReplyDelete
  2. It is meant to protect the corners in case of falling or dropping.
    While this took twice as long as the i - Pad to reach its one millionth unit sale,
    market experts believe the Galaxy is giving the
    Apple tablet a real run for its money. Considering it.
    My web site - iphone casing

    ReplyDelete
  3. Hi i am kavin, its my first occasion to commenting anywhere, when i read this piece of writing i thought
    i could also make comment due to this brilliant paragraph.
    Feel free to visit my blog ... MEDAL OF HONOR WARFIGHTER Aimbot

    ReplyDelete
  4. Awesome blog! Do you have any tips for aspiring writers?
    I'm hoping to start my own website soon but I'm a little lost on everything.
    Would you suggest starting with a free platform like Wordpress
    or go for a paid option? There are so many choices out there that I'm totally confused .. Any recommendations? Many thanks!

    my weblog ... filmy online

    ReplyDelete