How to disable the Autorun functionality in Windows ?

  1. Run dialog : regedit.
  2. Go to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer.
  3. In this key, change NoDriveTypeAutoRun value to FF for hexadecimal or 255 for decimal.
  4. Restart the computer.