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 itself, 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.