
Use the disk size to determine which one is your USB flash drive. At the DISKPART> prompt, type list disk and press Enter.If you receive a User Account Control prompt asking for permission to continue, click Yes.Press Windows key+ R to open the Run box.You can use the Windows DiskPart command-line utility to enable or disable read-only mode on your USB flash drive. Using DiskPart to change read-only settings

This action effectively sets all files and the device to read-only mode. If your device has this switch, move it to the "Lock" position. The write protection switch is useful for keeping the contents of your drive safe from malware when you need to view them on a public computer. Some USB flash drives have a write protection switch on the side or bottom.


Change security permissions in flash drive properties.Using DiskPart to change read-only settings.
