李sir_Blog

博客园 首页 联系 订阅 管理
  705 随笔 :: 58 文章 :: 134 评论 :: 193万 阅读

Abstract
USB autorun原來為Windows相當貼心的功能,但隨著USB外接硬碟與隨身碟越來越大,又可借由autorun傳播病毒,所以希望能停用此功能。

Introduction
修改registry:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\的NoDriveTypeAutoRun,預設值為0x91 (145),改成0xFF就是關閉所有USB autorun。

0x1 (1) Disables Autoplay on drives of unknown type.
0x4 (4) Disables Autoplay on removable drives.
0x8 (8) Disables Autoplay on fixed drives.
0x10 (16) Disables Autoplay on network drives.
0x20 (32) Disables Autoplay on CD-ROM drives.
0x40 (64) Disables Autoplay on RAM disks.
0x80 (128) Disables Autoplay on drives of unknown type.
0xDF (223) Turns on autoplay for CD and DVD only.
0xFB (251) Turns on autoplay for flash drives and removable disks
0xFF (255) Disables Autoplay on all types of drives

posted on   李sir  阅读(411)  评论(0编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
点击右上角即可分享
微信分享提示