Disable Autorun/Autoplay

Autorun is a Friend to Malware

Windows' Autorun feature is turned on by default on most Windows versions, allowing programs to run from an external device as soon as they are attached to a computer.

Because malware can exploit the Autorun feature — spreading its unfortunate payload from your device to your PC — it has been somewhat polarizing, and many users choose to disable it. 

Note: AutoPlay is a Windows feature that is part of AutoRun.

It prompts the user to play music, videos or display pictures. Autorun, on the other hand, is a broader setting that controls the actions to take when a USB drive or CD/DVD are inserted into a drive on your computer.

Disabling AutoRun

There is no interface setting to turn off autorun completely; instead, you need to edit the Windows Registry.

  1. In the Search field, enter regedit, and select regedit.exe to open the Registry Editor.
  2. Navigate to the key:  HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
  3. If the entry "NoDriveTypeAutoRun" does not appear, create a new DWORD value by right-clicking in the right pane to access the context menu and selecting New DWORD (32-bit) Value.
  4. Name the DWORD NoDriveTypeAutoRun, and set it value to one of the following:
  • FF – To disable AutoRun on all drives
  • 20 – To disable AutoRun on CD-ROM drives
  • 4 – To disable AutoRun on removable drives
  • 8 – To disable AutoRun on fixed drives
  • 10 – To disable AutoRun on network drives
  • 40 – To disable AutoRun on RAM disks
  • 1 – To disable AutoRun on unknown drives

To turn autorun back on in the future, just delete the NoDriveTypeAutoRun value.

Disabling AutoPlay

Disabling Autoplay is easy, but the process depends on your operating system.

Windows 10:

  1. Open the Settings app and click Devices.
  2. Select AutoPlay from the left sidebar.
  3. Move the button Use AutoPlay for all media and devices button to Off.

Windows 8:

  1. Open the Control Panel by seraching for it from the Start screen.
  2. Select Autoplay from the Control Panel's entries.
  3. Select the option you wish from the Choose what happens when you insert each type of media or device section. For example, you can choose different options for pictures or videos. To completely disable Autoplay, deselect the check box Use AutoPlay for all media and  devices.
Was this page helpful?