Removing write protection on drives using DiskPart
Open Command Prompt or PowerShell as admin then follow the steps below.
Make note of the disk you want to remove the write lock on from the step above.
If successful, Command Prompt should output ‘Disk attributes cleared successfully’ You can now exit Command Prompt Keep in mind that drives are often write-locked because they are failing or dead. In those cases, it’s best to back up the data on said drive.