微软文档:
How to disable the Autorun functionality in Windows
方法一,通过组策略设置(注意:Windows XP HOME不支持):
How to use Group Policy settings to disable all Autorun features in Windows Server 2003, Windows XP Professional, and Windows 2000
- Click Start, click Run, type Gpedit.msc in the Open box, and then click OK.
- Under Computer Configuration, expand Administrative Templates, and then click System.
- In the Settings pane, right-click Turn off Autoplay, and then click Properties.
Note In Windows 2000, the policy setting is named Disable Autoplay.
- Click Enabled, and then select All drives in the Turn off Autoplay box to disable Autorun on all drives.
- Click OK to close the Turn off Autoplay Properties dialog box.
- Restart the computer.
方法二,通过注册表(所有XP系统有效,但是要修改注册表,这个操作有一定风险,请操作前备份好注册表。):
How to disable all Autorun features in Windows XP Home Edition and other operating systems.
For operating systems that do not include Gpedit.msc, follow these steps:
- Click Start, click Run, type regedit in the Open box, and then click OK.
点击”开始“按钮,点击”运行“,在运行对话框中输入”regedit “, 然后点击”确定“。 - Locate and then click the following entry in the registry:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\NoDriveTypeAutorun
定位到如下注册表键值:HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\NoDriveTypeAutorun - Right-click NoDriveTypeAutoRun, and then click Modify.
右键选择”NoDriveTypeAutoRun“这个键,然后点击”修改“。 - In the Value data box, type 0xFF to disable all types of drives. Or, to selectively disable specific drives, use a different value as described in the “How to selectively disable specific Autorun features” section.
在弹出的键值修改对话框中,把原来的值修改为0xFF。或者用不同的值来有选择性地禁用指定驱动器,详见”How to selectively disable specific Autorun features”章节。 - Click OK, and then exit Registry Editor.
点击确定,然后退出注册表编辑器。 - Restart the computer.
重启计算机,使设置生效。
NaRiver Blog
0 Comments.