The small trick of banning U disk copy

Source: Internet
Author: User

prohibit a U disk copy of the small coup:

1, open the registration, select the Start menu, and then select Run Options.

2, in the Open Run Options dialog window, we entered the registry command, Regedit.

3. After entering the registry command, click the OK button to open Registry Editor.

4, in turn, open the following path to the registration form, Hkey_local_machinesystemcurrentcontrolsetcontrol.

5, then the control key value above the right button, select New, select the item.

6, and then rename the newly-created item, change the name to Storagedevicepolicies.

7, and then select the Storagedevicepolicies item, right button to create a DWORD value, the name of this DWORD value changed to Writeprotect.

8, then we select the Storagedevicepolicies item, the right button above, select Export.

9, select Export after the Export Registry pop-up File window, we put the export file into the C packing directory, so to browse to the root of C disk, and the exported file named: Yes.reg.

10, and then select the Writeprotect value on the right side of the storagedevicepolicies item, double-click to open, set the DWORD value to 1, where 1 indicates the meaning of the prohibition.

11. After changing the value to 1, click OK, close the window, and then right-click the Storagedevicepolicies item again to select the export option.

12, select the export after browsing to the C-packing directory, the file stored in the C-packing directory, the location can be set by themselves, in order to facilitate, I placed in the C-disk directory under the name of the ban. Reg.

13, then open the Start menu, select the program, then select the attachment, and finally select Notepad file, in the Open Notepad File window, input command echo off Reg import C:yes.reg.

14, and then save the file to the C:windowssystem32 path below, and named the. bat suffix file, here because of convenience, it is named Yes.bat, name everyone can take.

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.