Windows Registry Editor Version 5.00

; Disable Autoplay for All Drives
; Disables Autoplay prompts for every drive type, including USB.
;
; Usage: double-click to apply, then sign out and back in (or restart
; explorer.exe) for it to take full effect. Back up your registry first
; if you're unsure (File > Export in Registry Editor).

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=dword:000000ff