In case the key StorageDevicePolicies does not exist, right-click on the Control key and select New/Key. Name it StorageDevicePolicies. Open this key and right-click on an empty spot in the right-hand side of the window. Select New/DWORD Value and name it WriteProtect. Enter 0 to deactivate the write protection.