The AutoRun feature in Windows 10 is enabled by default and in the following tutorial, we’ll show you two different ways to disable the Autorun in Windows 10.
Disable AutoRun in Windows SettingsClick on the Search icon located at the bottom left of your screen and search for Settings. From the search result, click on the Settings that appear under the Best Match. This will open the Windows Settings. You can also use the command key Windows + I.
Under the Windows Settings, click on the Devices button.
Then click on the AutoPlay link on the left navigation panel. Toggle the AutoPlay option to disable it.
Delete Autorun.inf FileBy simply deleting autorun.inf file in your external devices, Windows 10 will no longer be able to execute any AutoRun operations. This will stop the infected external devices from installing malicious virus to your computer.
Launch the Windows Explorer and browse to your external drive location. Do note that the Autorun.inf file is hidden by default. In order to view this file, click on the View menu and then check the option Hidden items.
You should now be able to see this file. Select autorun.inf file in this folder, right-click the mouse and select Delete.