Disable AutoRun in Windows
The Windows AutoRun feature enables programs to run from external devices as soon as the device is attached to your computer. Because malware can exploit AutoRun, many users disable it. There’s no interface setting to turn off AutoRun completely. Instead, you edit the Windows Registry. To turn AutoRun back on, delete the DWORD NoDriveTypeAutoRun value.
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.
Disable AutoPlay in Windows
AutoPlay is a Windows feature that’s part of AutoRun. AutoPlay prompts you to play music and videos or display pictures. You can disable AutoPlay in a few steps, but the process depends on your Windows version.
Windows 10
Windows 8
In Windows 8 and 8.1: