Rename the New Value #1 DWORD file to WriteProtect then make sure the value is 0.
Select the newly created StorageDevicePolicies folder, then create a new DWORD file inside by performing right-click New > DWORD.
Rename the New Key #1 to StorageDevicePolicies then press enter to rename.
Inside the Control folder, right-click, select New > Key
(Optional) If StorageDevicePolicies is not available in step 3, you can try to create it.
Insert your USB drive again and you will find it no longer write protected, you can now delete or format the USB Drive.
Close the Registry Editor, then restart your computer.
Inside StorageDevicePolicies double click on WriteProtect then change the value from 1 to 0, then click OK to save.
Navigate this in the registry editor Computer\HKEY_LOCAL_MACHINE\ SYSTEM\CurrentControlSet\ Control\StorageDevicePolicies scroll down to see StorageDevicePolicies, if you can’t find it go to step 6 to create.
When the confirmation popup appears, click “Yes”.
Search regedit on Windows Start search bar, and click or enter to open Registry Editor.