Disable Autorun For Removable Media In Windows 7 Most malware applications spread because of the Autorun feature, which automatically executes a said file mentioned in the autorun.inf file located at the root of any removable device like USB. Also the Open folder to view files option can be easily used to run any unwanted file or executable and thus in this way there is a risk of your computer getting infected. Precaution is better than cure, its very simple to disable autorun.
First of all launch the Run dialogue box by pressing Win + R, then type Gpedit.msc and press Enter.
The Local Group Policy Editor will be launched.
Now navigate to Computer Configuration > Administrative Templates > Windows Components.