How to Format Write Protected Pendrive in CMD Windows 10, 8, 7?
Geeks - Formatting a write-protected USB drive in Command Prompt can be a useful way to fix errors or issues on the drive. Here are the steps to do so in Windows 10, 8, and 7:
Insert the USB drive into your computer's USB port.
Press the Windows key + R on your keyboard to open the Run dialog box.
Type "cmd" into the Run dialog box and press Enter. This will open the Command Prompt.
Type "diskpart" into the Command Prompt and press Enter. This will open the Disk Partition utility.
Type "list disk" into the Disk Partition utility and press Enter. This will display a list of all the disks connected to your computer.
Identify the USB drive you want to format by its size. Type "select disk X" (replacing "X" with the number of the USB drive from the list) and press Enter.
Type "attributes disk clear readonly" and press Enter. This will remove the write protection from the USB drive.
Type "clean" and press Enter. This will erase all the data on the USB drive.
Type "create partition primary" and press Enter. This will create a new primary partition on the USB drive.
Type "format fs=ntfs quick" and press Enter. This will format the USB drive with the NTFS file system.
Type "assign" and press Enter. This will assign a drive letter to the USB drive.
Type "exit" and press Enter to close the Disk Partition utility and return to the Command Prompt.
Keep in mind that formatting a USB drive will erase all the data on it. Make sure to backup any important files on the drive before formatting.