How to lock your files on a USB drive

Source: Internet
Author: User

The computer has important information, do not want someone to copy the contents of their own computer through U disk. That is, when someone inserts a U disk, it is not displayed in a removable storage device. How does this happen?

1, on the Start menu, open "Run" enter "regedit" to open Registry Editor. Expand [Hkey_local_machinesystemcurrentcontrolsetcontrol] to create a new subkey named "Storagedevicepolicies" under the branch, with the new name " Writeprotect, and set this value to 0.

2, right-click the "Storagedevicepolicies" subkey, select Export, and export the key value to "Y.reg". Then the "Writeprotect" DWORD value, and set this value to "1", also exported as "U disk Read Only" (Prohibit the use of U disk), on the desktop.

3, start "Notepad", the production of a batch file "Yes.bat", placed under C:windowssystem32, the code is as follows:

Echo off

Reg Import C:y.reg

OK, now double-click the "U disk read only. reg", and then insert a U disk when copying files from this computer, the system will be an error.

Note If you want to copy the file to a U disk, as long as the "start"-"run" in the input "YES", and then insert U disk can be copied files, as long as you double-click the "U disk only read." Reg, you can ban U disk replication, is not very convenient AH. Hurry up and try it!

Note : More attention to the computer Tutorials section, triple Computer office group: 189034526 welcome you to join

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.