U 盘注册表操作笔记

功能操作类型注册表代码操作步骤
禁止 U 盘使用禁用 USB 存储设备plaintext
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"Start"=dword:00000004
1. 新建记事本,粘贴代码;2. 另存为disable_usb.reg(保存类型选 “所有文件”);3. 右键以管理员身份运行,确认导入注册表。
启用 U 盘使用恢复 USB 存储设备plaintext
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"Start"=dword:00000003
同上,另存为enable_usb.reg并运行。
设置 U 盘为只读模式限制 U 盘写入功能plaintext
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies]
"WriteProtect"=dword:00000001
同上,另存为usb_read_only.reg并以管理员权限运行。
取消 U 盘只读(恢复可写)解除 U 盘写入限制plaintext
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies]
"WriteProtect"=dword:00000000
同上,另存为remove_usb_read_only.reg并以管理员权限运行。

1. 禁止 U 盘使用

  • 功能:通过修改注册表禁用 U 盘。
  • 注册表代码:
Windows Registry Editor Version 5.00  
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]  
"Start"=dword:00000004  
  • 操作步骤:
  • 新建记事本,粘贴代码。
  • 另存为 disable_usb.reg(保存类型选 “所有文件”)。
  • 右键点击文件,选择 “以管理员身份运行”,确认导入。

2. 启用 U 盘使用

  • 功能:恢复 U 盘正常使用。
  • 注册表代码:
Windows Registry Editor Version 5.00  
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]  
"Start"=dword:00000003  
  • 操作步骤:同 “禁止 U 盘”,另存为 enable_usb.reg 并运行。

3. 设置 U 盘为只读模式

  • 功能:使 U 盘只能读取,无法写入。
  • 注册表代码:
Windows Registry Editor Version 5.00  
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies]  
"WriteProtect"=dword:00000001  
  • 操作步骤:同前,另存为 usb_read_only.reg 并以管理员权限运行。

4. 取消 U 盘只读(恢复可写)

  • 功能:解除 U 盘只读限制。
  • 注册表代码:
Windows Registry Editor Version 5.00  
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies]  
"WriteProtect"=dword:00000000  
1
0
文章导航
  • 飞牛部署网络唤醒工具【UpSnap】
  • 3ds MAX XXXX 出现script controller错误闪退
  • 上一篇飞牛部署网络唤醒工具【UpSnap】
  • 下一篇3ds MAX XXXX 出现script controller错误闪退