Because malware can exploit AutoRun, many users disable it.
There’s no interface setting to turn off AutoRun completely.
Instead, you edit theWindows Registry.
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 could disable AutoPlay in a few steps, but the process depends onyour Windows version.
Windows 10
Select theStarticon in the lower-left corner, then select theSettingsicon in the left pane.
SelectAutoPlayfrom the left pane, then select theAutoPlaytoggle to turn itOff.
Windows 8
In Windows 8 and 8.1:
On theStartscreen, selectApps>Windows System.
kick off the Control Paneland selectAutoPlay.
For example, you’ve got the option to choose different options for pictures or videos.
To completely disable AutoPlay, deselect theUse AutoPlay for all media and devicesbox.