1. Open Start Menu >> Run, type regedit and press Enter, this will open the registry editor.
2. Navigate to the following path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
Note: If the registry key StorageDevicePolicies key does not exist, you will need to create it
3. Double click the key WriteProtect in the right pane and set the value to 0 in the Value Data Box and press OK button