USB Flash Drive - Disable Autorun

December 2016




Disable autorun by default under Windows to avoid infections through your removable drives: USB flash drives, external hard drives, MP3 players, cards, digital cameras, etc. ...

Why

  • When connected to a PC, the infection is transmitted via removable drives such as cookies!
  • Here are some examples:
    • AdobeR.exe
    • RavMon.exe
    • Host.exe
    • Svchost.exe
    • ise32.exe.
    • Copy.exe
    • MS32DLL.dll.vbs

Solution

  • Create a .reg file
  • Open Notepad and copy/paste the following code:



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer] 
"NoDriveTypeAutoRun"=dword:000000ff 

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] 
"NoDriveTypeAutoRun"=dword:000000ff 
  • Name it as: autorun_disable.reg
  • Double-click the file to run. You will receive a message asking if you want to add data in the registry.
  • Click Yes to allow the change.
  • Restart the system for the changes to take effect

Related :

This document entitled « USB Flash Drive - Disable Autorun  » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.