How to remove write-protection on a USB flash drive or SD card

Have you ever tried copying,  pasting,  removing,  deleting or formatting on an external drive on your computer or laptop and you get the following error:
"This disk is write protected,  remove write protection to continue"
It can be annoying,  right?  But don't worry,  here's a simple  way to solve your problem. 
Click Start or press the microsoft window button in your  keyboard,  go to run,  or if you don't  see it,  type run in the search box.  Once it opens,  type Regedit in the search box.
Your system might ask if you want the program to make changes to this computer.  Click yes. 

Alternatively,  click Regedit.exe in the search box to open the Registry editor
Once the registry editor is opened, navigate to the following key:

Just right click on each item and expand till you get the final item "Storage"
Right click to modify  and set the new value to 0.
Or Double-click on the WriteProtect value in the right-hand pane of Regedit.exe. Change the Value data from 1 to 0 and click OK to save the change.
Close Regedit and restart your computer.
Otherwise,  just eject the usb flash  drive it SD card and put reconnect it again, you should find the write protection is removed and the device is no longer write protected.
You can then modify  and copy your documents to your heart's content.