Disabling Windows Autorun

© 2024 Eric Skagerberg   (All rights reserved.  This material may not be reproduced in printed or electronic format without the express permission of the author.)
Associate Instructor, Computer Studies Department
Santa Rosa Junior College, California
Page last updated 7 May, 2011    

 


Viruses, parasites, and other malware, such as the "Conficker" worm, can use the Windows "Autorun" function to infect other computers.  Autorun automatically launches a designated program as soon as you insert a CD or flash drive, or other external media.

You can disable the Autorun function with the following small file:

Disable-Autorun.zip

  1. Click on the above file link to display an Open or Download dialog box
  2. If the dialog box contains an Open option, select it and click to proceed. 
  3. Open "Disable-Autorun.reg" (again, usually a double-click) to merge it into your Windows Registry.
  4. Close the "Disable-Autorun" folder window.
  5. You may delete the Disable-Autorun zip file afterwards.

(I packaged "Disable-Autorun.reg" in a .zip file because some systems change the file name extension of .reg files to .mp3 upon download.)

Disable-Autorun.reg is a standard-format registry merge file, containing this text:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer]
   "HonorAutoRunSetting"=dword:00000001
   "NoDriveTypeAutoRun"=dword:000000ff
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]
   @="@SYS:DoesNotExist"
 

This assumes your Windows system has been installing Automatic Updates at least monthly, and therefore already has Update 950582 or 967715.

Please see these references, which include other ways of disabling Autorun: