Check for a physical lock switch on the pendrive and turn it off
Try a different USB port or another computer
Open Command Prompt as administrator
Run `diskpart`
Type `list disk`
Identify the pendrive
Type `select disk X`
Type `attributes disk clear readonly`
Type `clean`
Type `create partition primary`
Type `format fs=fat32 quick`
Type `assign`
Close Command Prompt
Open Registry Editor
Go to `HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies`
Set `WriteProtect` to `0`
If `StorageDevicePolicies` does not exist, create it
Restart the computer
Check antivirus or endpoint protection settings
Update or reinstall USB drivers
Use the manufacturer’s formatting tool
Replace the pendrive if it remains write protected
