在XP下如何禁止使用USB设备(微软知识库)

HOW TO: Disable the Use of USB Storage Devices in Windows XP

Article ID:823732
Last Review:August 19, 2003
Revision:1.0
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry

SUMMARY

This article discusses two methods that you can use to prevent users from connecting to a USB storage device on a Windows XP-based computer.

back to the top

To Disable the Use of USB Storage Devices in Windows XP

To disable the use of USB storage devices in Windows XP, use one of the following procedures, as appropriate to your situation:

back to the top
If a USB Storage Device Is Not Already Installed on the Computer
If a USB storage device is not already installed on the computer, assign the user or the group Deny permissions to the following files:
%SystemRoot%/Inf/Usbstor.pnf
%SystemRoot%/Inf/Usbstor.inf
When you do so, users cannot install a USB storage device on the computer. To assign a user or group Deny permissions to the Usbstor.pnf and Usbstor.inf files, follow these steps:
1.Start Windows Explorer, and then locate the %SystemRoot%/Inf folder.
2.Right-click the Usbstor.pnf file, and then click Properties.
3.Click the Security tab.
4.In the Group or user names list, click the user or group that you want to set Deny permissions for.
5.In the Permissions for UserName or GroupName list, click to select the Deny check box next to Full Control, and then click OK.
6.Right-click the Usbstor.inf file, and then click Properties.
7.Click the Security tab.
8.In the Group or user names list, click the user or group that you want to set Deny permissions for.
9.In the Permissions for UserName or GroupName list, click to select the Deny check box next to Full Control, and then click OK.
back to the top
If a USB Storage Device Is Already Installed on the Computer
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. If a USB storage device is already installed on the computer, set the Start value in the following registry key to 4:
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/UsbStor
When you do so, the USB storage device does not work when the user connects the device to the computer. To set the Start value, follow these steps:
1.Click Start, and then click Run.
2.In the Open box, type regedit, and then click OK.
3.Locate, and then click the following registry key:
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/UsbStor
4.In the right pane, double-click Start.
5.In the Value data box, type 4, click Hexadecimal (if it is not already selected), and then click OK.
6.Quit Registry Editor.
back to the top

APPLIES TO
Microsoft Windows XP Home Edition
Microsoft Windows XP Professional Edition
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值