How to enable/disable write protection of pendrive/sd cards in Windows

Using Diskpart(command-line disk partitioning utility) to enable/disable write protection of pendrive/SD cards Steps to enable Write protection Step 1: Click on Start menu Step 2: write "diskpart"(without quotes) on the search text box. Step 3: click on diskpart.exe if UAC(User Account Control) window pops up then click on yes Step 4: Wait for diskpart to start. Step 5: Now write "list disk"(without quotes) and press enter. Step 6: type 'select disk *'(without quotes) , be very careful this command is used to select your pendrive don't select the wrong drive as it could be disastrous , and press enter. (* = 0,1,2... the number listed after the disk for me it was 1) Step 7: Type "attributes disk"(without quotes) then press enter. Check for the Current Read-only State flag its No now. Step 8: Type "attributes disk set readonly"(without quotes) (this command changes the Current Read-only St...