You can do this (but then all users will have access rights to read-write-executable): Lock, encrypt, password protect USB flash drive, thumb drive, pen drive, memory stick, and other portable storage devices.
First, you need to identify the vendorID and productID of your USB device. You can check the properties of the USB drive via Diskpart to fix disk is write-protected issue. 0 : read, write and execute 1 : read and write 2 : read and execute 3 : read only 4 : write and execute 5 : write only 6 : execute only 7 : no permissions Accordingly, the first digit - for the user, the second - for his group, the third - for all others.2 Type the command below into the command prompt, and press Enter.
How to make pendrive read only permanently The utility even recovers permanently erased files from removable storage devices like external hard drives, pen drives, memory cards, SSD drives and other storage devices.