Hello , for you all who are still trying to solve this problem there is one thing left to do. I know that most of the solutions which are already given dont work (at least most of them) but, they are nearly correct. So I am not going to talk too much . Basically , what you have to do is :
Step 1:
Go to this directory HKEY_LOCAL_MACHINE\SYSTEM\Currentcontrolset\control\
again and right click control folder
Step 2:
Select new, then click key and rename the new key #1 folder into
StorageDevicePolicies
Step 3:
Right click StorageDevicePolicies folder and select new DWORD(32-bit) Value
for 32-bit Operating System and select new DWORD(64-bit) Value
for 64-bit Operating System
Step 4:
Rename dword newer folder into WriteProtect, then double click WriteProtect
and change the value data into 0 with hexadecimal base
Step 5:
Right click on the newly created folder, then click on permissions. At Full control and Read , check the both boxes to allow .
Step 6:
Open my computer and refresh it few times. Eject your USB and re-connect it again.
Step 7:
Plug in your usb again into your computer and format it as normal.
If I helped you , please leave a like so the rest people having the same issue may fix theirs aswell