XP SP2 registry key to enable the write protection of USB flash dr

G

Guest

XP SP2 supposedly introduce a new reg key to prevent the USB storage devices
being written too. I could not find the key as suggested by the Tech Net
article
Changes to Functionality in Microsoft Windows XP Service Pack 2
Part 7: Other Technologies.

I manually inputed the key as per the article but it failed to worked.
 
T

Torgeir Bakken \(MVP\)

Bernie said:
XP SP2 supposedly introduce a new reg key to prevent the USB storage devices
being written too. I could not find the key as suggested by the Tech Net
article
Changes to Functionality in Microsoft Windows XP Service Pack 2
Part 7: Other Technologies.

I manually inputed the key as per the article but it failed to worked.
Hi

This worked fine for me:

Created a new key StorageDevicePolicies under
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\

Then created a DWORD value with name WriteProtect and sat it to 1.

Unplugged the USB disk and then plugged it back again, and it was
not possible to write to it anymore.


I suggest you create the registry value with this VBScript to be
sure it is set correctly (put it in a .vbs file and double click
on the file):


'--------------------8<----------------------

Set oShell = CreateObject("Wscript.Shell")

oShell.RegWrite "HKLM\System\CurrentControlSet\Control" _
& "\StorageDevicePolicies\WriteProtect", 1,"REG_DWORD"

MsgBox "Done!", vbInformation + vbSystemModal, "Registry update"

'--------------------8<----------------------
 
G

Guest

Thanks for this it now works as advertised

Torgeir Bakken (MVP) said:
Hi

This worked fine for me:

Created a new key StorageDevicePolicies under
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\

Then created a DWORD value with name WriteProtect and sat it to 1.

Unplugged the USB disk and then plugged it back again, and it was
not possible to write to it anymore.


I suggest you create the registry value with this VBScript to be
sure it is set correctly (put it in a .vbs file and double click
on the file):


'--------------------8<----------------------

Set oShell = CreateObject("Wscript.Shell")

oShell.RegWrite "HKLM\System\CurrentControlSet\Control" _
& "\StorageDevicePolicies\WriteProtect", 1,"REG_DWORD"

MsgBox "Done!", vbInformation + vbSystemModal, "Registry update"

'--------------------8<----------------------




--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx
 
G

Guest

hello there

I've never done anything to my system reg file so is there an idiot guide
that will let me write to my usb key? I don't want to bugger anything up.

thanks

James Jones
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top