XP system how to prohibit the U disk write file

Source: Internet
Author: User

one, manual method.

Run regedit, open Registry Editor, and under Hkey_local_machine/system/currentcontrolset/control, create a new key named Storagedevicepolicies. Then in the right window of the Storagedevicepolicies item, right-click the mouse, select "New->dword value" in the pop-up menu, build a DWORD named Writeprotect, then modify the health value to 1, and then restart the computer to take effect.

  Second, the registration form law.

Copy the following code into a text document by changing the extension to. reg, double-click Import

Windows Registry Editor Version 5.00

[Hkey_local_machinesystemcurrentcontrolsetcontrolstoragedevicepolicies]

"Writeprotect" =dword:00000001

Copy the following code to a text document by changing the extension to. reg, you can restore the write function of U disk after import:

Windows Registry Editor Version 5.00

[Hkey_local_machinesystemcurrentcontrolsetcontrolstoragedevicepolicies]

"Writeprotect" =dword:00000000

 Third, the following is to modify the hardware model, use caution!

Use the built-in DiskPart command.

Insert the move disk, under the DiskPart command line:

List Vol.

View the disk list, assuming that the first partition of the disk to be write-protected is H, select the disk with the command:

Select Vol h

Then set write protection:

ATT vol. set readonly

OK, it's done!

If you want to remove write protection, under DiskPart:

Select Vol H

ATT vol. Clear readonly

Some removable storage devices may need to use the GPT command to modify read-write mode

Read only: GPT ATTRIBUTES =0x8000000000000000

Read and write: GPT ATTRIBUTES =0xf000000000000001

  Iv. attrib Order modification method:

The format of the attrib directive and the common parameters are

ATTRIB [+r |-r] [+a |-A] [+s |-S] [+h |-h] [[Drive:] [path] filename] [/S [/d]]

+ Set properties.

-Clears the properties.

R read-only file properties.

A Archive file attribute.

S System file properties.

H hidden file properties.

I have no content index file properties.

[Drive:] [Path] [FileName]

Specifies the file attributes to process.

/S handles matching files in the current folder and its subfolders.

/d also processes folders.

/L handles the genus of symbolic links and symbolic link destinations

Above four methods, can be perfect let your u disk prohibit write file, of course, these four methods only suitable in XP system use, if your computer is Win7 or higher version, because the information of the registry may change, so not necessarily all applicable. Also want to restore the U disk function of a friend as long as the above four ways to reset back to the original.

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.