LLBBL

5 words

How to disable Autoplay

June13

Autoplay is also known as Autorun which should already be disabled for your cd-rom drives because of companies like Sony who like to install DRM on your computer without even asking you. There is a good article from Engadget on how to disable Autorun using a .reg file. This only works for CD-ROM drives and does not disable Autorun for USB drives.

There has been recent news of people gaining access to machines on an internal network using social engineering and USB drives. This guide will show you how to make sure that Autoplay/Autorun is disabled for all devices on your computer. It is highly recommended that you make sure Autorun is disabled for any computers you have access to at work that are running Windows XP. Disabling just the CDROM for your home computers is probably good enough since physical access to those computers is more restricted.

1. Click Start > Run

start-run

2. Type “gpedit.msc”

gpedit

3. Computer Configuration > Click “Administrative Templates” > Click “System” > Double-Click “Turn off Autoplay”

group policy editor

4. Setting tab > Check “Enabled” > Select “All drives” from the drop down menu > Apply > Ok

disable-autoplay

There 4 easy steps to making sure that Autoplay (Autorun) is disabled on all your drives including the USB. That would remove the ability of people to insert a USB drive and automatically run a .exe on your computer by using a *.inf file.

The last thing that you can do to protect yourself is to make sure that you have “Hide extensions for known file types”. This will help you from accidentally clicking on a file that is on a USB drive that looks like it is safe to look at, but is not really. This is one aspect of social engineering that is dependent on the user to make the right decision.

Many criminals will try to mask the presence of a malicious file by adding on .exe to the end of a common file type. For instance .doc.exe or .xls.exe or .jpg.exe would be some examples. The file that you click on is not what you expect it to be rather a virus or a program used to compromise your system. Most anti-virus programs will catch this file after you execute it, but to be on the safe side it is best not to click on it in the first place.

- Open a local folder in Windows Explorer (not IE) like My Documents > Click Tools > Click Folder Options > Click “View” Tab > Uncheck “Hide extensions for known file types”

hide-extensions

Update
I updated some of the links that didn’t work, like the link to the news article about the Sony DRM and the old .reg file. I found a copy of the reg file somewhere else on the internet and rehosted it here so it doesn’t disappear again.

posted under News

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

56 Comments to

“How to disable Autoplay”

  1. On June 14th, 2006 at 6:44 pm TylerNi7 Says:

    Sadly, that’s only available on Windows Professional I believe…

  2. On August 14th, 2006 at 7:33 am mhu Says:

    Your blog is very helpful. It helped to turn off the autoplay for USB device.

  3. On October 12th, 2006 at 4:52 pm Ang Says:

    This method is only works for Windows XP Professional.

  4. On October 26th, 2006 at 5:40 am Luc Says:

    Is there a way to disable autoplay on removable media such as USB drives, but leave autoplay on for CD-ROM?

  5. On January 26th, 2007 at 2:44 pm Crazy Larry Says:

    I HATE autoplay. Thanks for the sage advice.

  6. On February 7th, 2007 at 6:02 pm Don Says:

    How can I add a line in the autorun.inf file on a USB drive to disable Windows Autoplay when the USB drive is inserted? i tried a thirs party app for CDs but it doesn’t seem to work on USB drive here is the autorun.inf file that it creates (but doesn’t work on a USB drive):

    [Autorun]
    shell\progr0\command=..\executer.exe
    shell\progr0=executer
    open=1stAutoRunExpressLauncher.exe
    icon=Yearbooks.ico,0
    label=ANALYZER
    [1st AutoRun Info]
    StartingItems.Count=1
    StartingItems.1.Type=OpenDocument
    StartingItems.1.Action.FileName=executer.exe
    MenuEntries.Count=0
    WindowWidth=0
    WindowHeight=0
    WindowColor=536870912
    TextColor=536870912
    ShowWindowBorder=1
    ShowWindowHeader=1
    WindowTitle=
    HeaderTitle=
    AllowWindowResize=0
    ProjectCode={2F9C29D1-5D91-4771-9C60-A62D17BD83D5}

  7. On February 7th, 2007 at 6:50 pm Logan Lindquist Says:

    Turn off Autoplay: Enable checked : All Drives selected

    As I have described above will turn off autoplay to your USB drive.

  8. On February 12th, 2007 at 9:23 am ghulam mujtaba Says:

    hi
    u tell me how i can remove viours autoplay in window me.
    i shall be very thankful to u

  9. On February 12th, 2007 at 12:48 pm Logan Lindquist Says:

    Sure, don’t use Windows ME. Switch to Ubuntu its even better than Windows Vista.

    http://www.ubuntu.com/

  10. On February 13th, 2007 at 12:28 pm Marc Says:

    I have XP pro and this worked a treat.

    XP home does not seem to be able to find gpedit.msc!

  11. On May 11th, 2007 at 3:06 pm jon Says:

    That was very helpful. I was getting annoyed at how my 500GB USB harddrive would scan its entire contents every time i turned it on.

  12. On June 7th, 2007 at 1:47 am oloman Says:

    Thanks mate .. really helpful tip!!

  13. On June 18th, 2007 at 11:55 pm Teom Says:

    That’s nice, thanks!

  14. On July 3rd, 2007 at 5:14 am Annick Says:

    This has been great help.Thanks a lot.

    I would also like if you help me disable my Hard disk drives to open via Auto.

  15. On July 5th, 2007 at 12:25 am Mbakry Says:

    Thanks allot…..

  16. On July 5th, 2007 at 12:29 am Mbakry Says:

    it’s great solution… Thanks a lot

  17. On July 10th, 2007 at 2:28 am saq Says:

    4. Hi guys!Pleazzzz help me out here!I have a similar prob.When I double-click on my external usb drive(250giga)an open with dialog pops up but the option for choosing a programme are deactivated(grey).If I right click on the drive and click open or explore it will open allright,but what about the double click.I should also mention that this is a prob that persists.I have noticed that the only way to get rid of it is by formatting the disc.I found that out because this prob infected my other drives (the 2 internal partitions I have and a usb stick).The most remarkable is that when I plugged the stick into another pc,the prob was still there,even for the other pc.(Not for its internal drives,of the second PC I mean.)To sum up,now I have formatted the 2 internal drives of the first PC and the usb stick,and they are just fine right now,but the external 250 giga drive is still a prob.Please suggest any solution apart from formatting!I ‘m trying to avoid that…Thx in advance!
    P.S.:Please respond as soon as possible

  18. On July 10th, 2007 at 7:24 am llbbl Says:

    I am confused. You are trying to get data off the 250 GB drive, but it keeps asking you to format the drive? I assume you are using XP. This formating problem also persists on other external drives and on other computers. Did I sum that up correctly?

    I think your drive is corrupted and it will be very hard to recover the data from it. To get it working again you will need to reformat it properly.

    Try this:

    Figure out what the drive is called in My Computer. For instance if it was drive letter F: you would then goto start > run and type cmd. Then type “format F: /U”. This will erase ALL your data on the drive.

  19. On August 9th, 2007 at 6:27 am Mohammad Says:

    Thank you for helping me. Very nice.

  20. On August 18th, 2007 at 6:00 pm Fareast187 Says:

    we can not disable windows autoplay with the autorun.inf
    i have tried 48 times to do that so..but it does not work..
    in the below is in the autorun.inf text that i put on my Thumbdrive.

    [autorun]
    open=
    shell\OPEN=PASSWORD.bat
    shell\OPEN\command=PASSWORD.bat
    shell\AutoPlay=PASSWORD.bat
    shell\AutoPlay.\command=PASSWORD.bat
    shell\Explore=PASSWORD.bat
    shell\Explore.\Command=PASSWORD.bat

    when we double click at drive the application will run…in the Autorun.inf i put a PASSWORD.bat to my pendrive
    its mean before access to my thumbdrive it ask for a password…

    so..copy that sources open notepad then paste and save it to autorun.inf in your pendrive!!!
    NOTE:-that PASSWORD.bat you can change it to application that you want…
    example:Rhapsody – Emerald Sword.mp3,transformer.jpg or myvirus.exe too..hihhi

    then remove your pendrive..and plug in back
    then try to double click at drive..

    in pendrive should have autorun.inf and the file that you want to run…..

    DISABLE AUTORUN IN REGISTRY:-

    Navigate to this key
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer the value “NoDriveTypeAutoRun” TYPE “REG_DWORD” and double click at NoDriveTypeAutoRun put a number “255″

    that will disable ur AutoPlay if you want enable juz put a number “0″

    we also can disable autoplay in the other way in a group policies like the above

  21. On August 21st, 2007 at 6:30 am LAKHWINDR SINGH Says:

    dear sir

    when i right click on my hd drive then appear a chiness language . plz tell me ita solution

    regards

    lahwinder singh

  22. On August 23rd, 2007 at 5:26 pm mdepsy Says:

    i founf a tool to remove called RVT and it’s easilly used
    and thanks all
    from Egypt

  23. On September 17th, 2007 at 4:10 am Kashif Says:

    i m kashif from lahore i Install A Programe and Programe Create a eXE Files In My Hard Every Drive Like Auto run This Name is Destop How I remove ALL destop File Plz Tel me in my Email Address I m very Thanks full to you I m wating ur reply masage bYE

  24. On September 25th, 2007 at 8:53 pm Raja Azkar Says:

    Dear sir,

    when i right click in my Local hard Drive then appear a chiness languages…
    plz tell me solution.

    i feel very troubile in my pc……
    basically i am doing job as a system suppor Engineer…

    tell me about solution..

    Thanks

  25. On September 25th, 2007 at 9:11 pm Raja Azkar Says:

    Dear sir

    when i try to be open my system Registery..through a local administrator its open . ok
    so when i open try to be open in Domain engineer user then it could not opend ..it say massange( Registry has been disabled by ur administrator )

    plz tell me this solution…about it..
    i am wating in ur Reply….

    Regard

  26. On September 26th, 2007 at 8:55 am llbbl Says:

    # Click on Start and go to Control Panel
    # Double click Regional and Language Options
    # Click on the Languages tab

    Make sure it is set to English. You will need to be administrator of the computer to do this, or to look at the registry.

  27. On October 2nd, 2007 at 5:35 am Charles Osagie Says:

    i tried diasabling my autorun but when i type this directory :- “gpedit.msc” it will lounch a stuff and said windows cannot find the fil type of the above name and i should type the correct one or search for the file through search engine from my computer….what is happening?

  28. On October 2nd, 2007 at 9:28 am llbbl Says:

    You are probably running XP Home edition. The Group Policy Editor (gpedit.msc) isn’t available for the Home Edition because XP Home can’t join a domain.

    Differences Home and Pro

    Group Policy

  29. On October 3rd, 2007 at 3:38 am Prasanth Says:

    its more helpful, thank u

  30. On October 4th, 2007 at 11:18 pm noname Says:

    This solution is incomplete because it only fixes the autorun problem, but a lot of people doesn’t knows that when they go to “my pc” and click on their usb drive icon the virus code will be executed. The best way to open the usb drives is through “windows explorer” or right clicking the icon on my pc and click “explore”.

    And of course is very important to disable autorun.

    You can make a test by putting an autorun file on a usb drive and using the “icon=” command. Even after disabling autorun the icon will be shown. So it means that even after disabling autorun the OS reads the file including the shell commands.

    Here is a little tutorial on how to execute programs or open files with shell commands.

    Does anyone knows how to disable the autorun shell commands for a drive?

  31. On October 5th, 2007 at 6:39 pm llbbl Says:

    @noname
    What you describe is not a concern because it would require that the user have an account on the machine. What is described above assumes that the user does not have a valid account on the machine.

    Where the hacker could walk up to any machine reboot it and install knoppix or something off their usb drive. That is why disabling autorun is a good idea for anyone.

    What we have are two situations right.

    1) Any workplace where security is a concern.
    – We have to assume that anyone working there is skilled computer user and follows rules. One rule being do not accept any usb drives from people you don’t know or trust.
    2) A publicly shared computer, like a library.
    – Restrict physical access to the machine and severely limit what users are allowed to access on the machine.

  32. On October 6th, 2007 at 11:01 pm noname Says:

    Oh ok, so you mean by disabling the option in the BIOS to boot from usb or cds?

  33. On October 6th, 2007 at 11:10 pm llbbl Says:

    Well that is a good idea, but not exactly what I was talking about.

    Disabling autoplay is all you really need to worry about because people can mount the usb drive and run scripts on the computer without even logging in.

    Who cares about disabling scripts running when you click on the icon for the drive because the user must be logged in at that point. Anyone who accepts usb drives from random joes off a street corner and clicks on the usb icon deserves to be hacked. Just don’t accept drives from random people, simple as that.

    That is my point. Sorry I was not more clear.

  34. On October 22nd, 2007 at 10:37 pm Jess Says:

    i have a question… when working on my computer or even playing games i keep getting this anoying rectangular box that has a little flash light in it and at the top its called autoplay and it pops up about every min or so sometimes sooner and it wont go away i have ran spywares and all sorts of things and it just keeps coming back does anyone know why this is happening or what it is and how i can get rid of it? and i dont have a cd’s in the drive so i cant understand why it keeps poping up its stay for a few seconds goes away and comes back a few seconds later or a min later… someone please help.

  35. On October 31st, 2007 at 7:32 pm damarys guevara Says:

    hola tengo un virus en el escritorio de mi computadora y no se como quitarlo ,sera que por este medio se podra eliminar

  36. On November 20th, 2007 at 11:36 am bossbest Says:

    problem = when i double click on all of my hdd partition (c,d,e}, its appear to be autoplay which means outoplay option is on the top of all selection given. any1 know how to fix the prob?

  37. On December 2nd, 2007 at 8:04 am Blogulate Says:

    good post ..

  38. On January 15th, 2008 at 6:50 am ishyael Says:

    Thanks dude. it really help a lot.
    that info or step is so simple but really helpful.
    Gudluck and Godbless…

  39. On January 28th, 2008 at 3:55 pm Patrick Says:

    Thanks. . . a lot u saved my day

  40. On February 3rd, 2008 at 11:07 pm divinegrace Says:

    sir,

    thank you very much for that helpful advice.

    Can i ask one more thing.. do you have any idea on how to remove the virus viva.dll.vbs

    my pc started to slow down because of this and i can’t find any ways of how to remove it.also, i have popup everytime i log my pc on, it says “welcome to shayma’s. please enjoy our services”
    my friends told me it is a virus and is infecting my pc..i’m not really sure if this is thecause why my pc starts to slow down….

    if anybody could help me pls do… thanks a lot!!!

  41. On February 4th, 2008 at 8:36 am llbbl Says:

    @divinegrace

    First you need to install, update and run antivirus software. NOD32 is the best, but its not free. If you want a free version try AVG.

    Then you need to install, update and run anti-spyware software. I would recommend Ad-aware by Lavasoft. They have a free version.

  42. On February 5th, 2008 at 12:14 am carol Says:

    pls help on how to make an antivirus on usb flash drive scans automatically all files when inserted to usb port?

  43. On February 5th, 2008 at 12:23 am llbbl Says:

    Carol that is a quite complicated solution. You are better off installing an anti virus to *prevent* you from becoming infected. However, if you want an on demand scanner you should just use the ones you can find online. I would recommend Trend Micro Housecall.

    http://housecall.trendmicro.com/

  44. On February 18th, 2008 at 6:31 pm ricky Says:

    got somewhat the same problem…got the problem for autoplay as well but i got rid of it..but this time im encountering a new one…instead of having AUTOPLAY, i have SEARCH…so when i double click on my HD, search window opens up…any help on this…

  45. On April 20th, 2008 at 8:22 am Juan Says:

    I always have problems with autorun in USB drives with my family, they infect my pc all the time, all the time.

    I’ve tried several options to disable autorun for good but I’ve learnt that some autorun.infs modify the drive’s context menu and the action to do when the drive is double clicked, and I surprised many of the options I’ve tried didn’t remove this danger…

    Will this alternative totally remove any related autorun activity? If I could I would remove every dll that has autorun in it and sue the guy that invented autorun.

  46. On June 27th, 2008 at 9:49 pm zeeshan ali Says:

    Thanks alot

  47. On July 9th, 2008 at 5:54 am Slick Says:

    i tried tha given steps, but when i right click on any of my partitions it says: start, autoplay, open, etc…

    i’ve uzed 3 different anti virus programs, trial and registered, but of no use… so if ne1 can help?!?!

  48. On August 20th, 2008 at 5:36 pm sean Says:

    i read your comments,it is so very helpful specially in removable drices,how about my hard drive partition?when i double click the local disk icon it always appear cannot access this drive,and when i highlights the icon and right click there is no OPEN option.it appears “Autoplay”or even “Explore” it can’t browse my Harddrive.The only thing that i do is go to Address Bar so i can access my drive..Can you help me regarding to this matter..Thank you so much…

  49. On August 26th, 2008 at 3:49 am Mohammed Ashraf .K.P Says:

    My pen drive not opened when db click access denide message come What I do ?

  50. On August 26th, 2008 at 3:50 am Mohammed Ashraf .K.P Says:

    thankyou

  51. On September 10th, 2008 at 2:34 am ALfonso D. Tayong Says:

    Thank You So Much my problem is solve..HDD autoplay is successfully disabled.

  52. On October 11th, 2008 at 3:44 pm Axezone Says:

    Yaa…u can do it also in Vista…but in a different way….type “gpedit.msc” in Run…go to “Computer Configuration > Administrative Templates > Windows Components > AutoPlay Policies > Turn Off auto play for all drives…..”
    Repeat the same going to “User Configuration > Administrative Templates > Windows Components > AutoPlay Policies > Turn Off auto play for all drives…..”

    That’s it……

  53. On October 11th, 2008 at 6:00 pm GPRS Says:

    This is True, this tip can decrease the percentage viruses spreading through your PC. This tip is helpful.

  54. On November 19th, 2008 at 12:24 pm razor Says:

    install either one ; BitDefender 2009, Kaspesky 2009, or Norton Internet Security 2009

  55. On April 14th, 2009 at 4:54 am Michael Says:

    you cannot do this in windows xp home edition. you need to edit your registry

  56. On August 2nd, 2009 at 4:07 pm rache Says:

    how come that after i click administrative template, i only have windows components folder, and no syste folder. pls help

Email will not be published

Website example

Your Comment: