Autorun USB in Windows 10?

NotCrunchyTaco picture NotCrunchyTaco · Sep 18, 2017 · Viewed 30.4k times · Source

How could I get an autorun USB drive in Windows 7/8/10. autorun.inf doesn't seem to work anymore. Also could this work without any rubber duckie USB drives? Maybe trick windows into thinking it is a DVD or CD to autorun?

Answer

Derek John Scott picture Derek John Scott · Feb 8, 2019

you might need to change a windows registry entry to allow media to be run automatically so that the autorun.inf file can be executed once the device is plugged in

[autorun]
Icon=lock.ico
Label=Payroll Information
;Open=FetchSalariesDB.EXE
ShellExecute=FetchSalariesDB.EXE
UseAutoPlay=1