First of all open your “Start menu“, and search for “Run” option.
Then type in “regedit” into run box and press Enter.
After that new window for registry editor will get open.
Next step is to navigate through following path
HKEY_LOCAL_MACHINE > SYSTEM> CURRENTCONTROLSET > CONTROL >S TORAGEDEVICEPOLICIES
Repairing USB using Redegit
After successfully reaching to that portion as shown above.
Double-click the “WriteProtect” key located in the right side pane and set the value to 0.
Go to the Data Value box and press “OK”
To finish the process safely remove the Pendrive,
Finally Restart your computer and Plug-in pendrive again.
Hope this solution will works for you.