web analytics

Registry Hack to Disable Writing to USB Drives

A common security concern at organizations is allowing users to plug in a usb flash drive, because they could so easily copy corporate data.

Since Windows XP SP2, you can disable writing to USB devices altogether using a simple registry hack. Here it is:

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies]

“WriteProtect”=dword:00000001
Blog Widget by LinkWithin

Incoming search terms for the article:


Related posts:

  1. “The Disk is write-protected” problem (Memory card)
  2. How to hide drives in your PC
  3. Hide ur drives || Lock ur drives
  4. [How To] Block programs in Windows 7 using Registry Editor
  5. [How To] Permanently disable UAC in Windows 7 / Vista
  6. Password protect your PenDrive with USB Safeguard
  7. Stopping Unneeded Startup Services
  8. Counter Strike 1.6 aimbot – CS 1.6 Cheats
  9. [How to]Disable hibernate and save precious disk space in XP
  10. How to disable security alerts in Windows

8 Comments

  1. zer09 says:

    where should i put this code:
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies]
    “WriteProtect”=dword:00000001

  2. bas says:

    Navigate to the Key given here by using Registry Editor and in the right side pane create new Dword. Name it as WriteProtect and keep the dword value 1.
    To re-enable USB writing make dword value 0

  3. SHANKY says:

    i have an xp sp2 after HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
    I DO NOT GET Control\StorageDevicePolicies WHAT DO I DO??

  4. SHANKY says:

    Even if I make one file by the name of StorageDevicePoliciesin control and define its value to 0 or 1 by using d-word value it still works. Awating reply ASAP

  5. SHANKY says:

    hey thanks a lot man.