USB Flash Drive - Disable Autorun

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. ...


  • 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


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

  • 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
Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled « USB Flash Drive - Disable Autorun », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (