Create file ProtectFlash and UnprotectFlash

Protect Flash

Step 1

Code :

Dim wsh
Set wsh = CreateObject(“Wscript.Shell”)
wsh.Regwrite “HKLM\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies\WriteProtect”, 1, “REG_DWORD”
wsh.Regwrite “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor\Start”, 4, “REG_DWORD”

Step  2

=>Save this code to extension “*.vbs” and double click

Unprotected Flash

Step 1

Code :

Dim wsh
Set wsh = CreateObject(“Wscript.Shell”)
wsh.Regwrite “HKLM\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies\WriteProtect”,0, “REG_DWORD”
wsh.Regwrite “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor\Start”, 0, “REG_DWORD”

Step 2

Step  2

=>Save this code to extension “*.vbs” and double click

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: