To be more secure, we can turn off all drive configuration with autoplay feature, because usually virus, worm and its variants will work with fashion autorun / autoplay at the first time when drive is connected to drives/devices. This steps will automatic removed autorun on USB flash drive and also CD/DVD room access from autorun.inf file.
Here are steps to disable autorun ;
1. type this registery entry into a Notepad :
REGEDIT4
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ IniFileMapping \ Autorun.inf]
@="@SYS:DoesNotExist"
- Click Save As on the File menu
- Select All Files in the Save as type option.
- type Edit.reg in the File name and click Save
- double clik on the file
- click OK
2. Then open regedit.exe in the Run command, look for the NoDriveTypeAutoRun key string:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer.
Change the value to 95 with type (Hexadecimal)
3. To disable autoplay for all drives with group policy, follow this steps;
- Type gpedit.msc in Start, Run
- Click the Local Security Policy - Computer Configuration - Administrative Templates - System in Group Policy
- Double-click Turn off Autoplay on the right window.
- Click Enabled
- Select All drives on the option "Turn off Autoplay on"
- Click Apply
- Click OK.