How to disable Autoplay

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.

  • http://llbbl.com llbbl

    # 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.

  • http://llbbl.com llbbl

    # 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.

  • http://www.fttechltd.cm Charles Osagie

    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?

  • http://www.fttechltd.cm Charles Osagie

    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?

  • http://llbbl.com llbbl

    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

  • http://llbbl.com llbbl

    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

  • http://yahoo.com Prasanth

    its more helpful, thank u

  • http://yahoo.com Prasanth

    its more helpful, thank u

  • noname

    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?

  • noname

    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?

  • http://llbbl.com llbbl

    @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.

  • http://llbbl.com llbbl

    @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.

  • noname

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

  • noname

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

  • http://llbbl.com llbbl

    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.

  • http://llbbl.com llbbl

    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.

  • Jess

    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.

  • Jess

    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.

  • damarys guevara

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

  • damarys guevara

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

  • http://llbbl bossbest

    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?

  • Blogulate

    good post ..

  • Blogulate

    good post ..

  • ishyael

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

  • ishyael

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

  • http://uber.blogsome.com Patrick

    Thanks. . . a lot u saved my day

  • http://uber.blogsome.com Patrick

    Thanks. . . a lot u saved my day

  • divinegrace

    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!!!

  • divinegrace

    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!!!

  • http://llbbl.com llbbl

    @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.

  • http://llbbl.com llbbl

    @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.

  • carol

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

  • carol

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

  • http://llbbl.com llbbl

    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/

  • http://llbbl.com llbbl

    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/

  • http://n/a ricky

    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…

  • Juan

    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.

  • Juan

    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.

  • zeeshan ali

    Thanks alot

  • zeeshan ali

    Thanks alot

  • Slick

    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?!?!

  • Slick

    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?!?!

  • sean

    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…

  • sean

    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…

  • http://ryancomtechnologies.com Mohammed Ashraf .K.P

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

  • http://ryancomtechnologies.com Mohammed Ashraf .K.P

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

  • http://ryancomtechnologies.com Mohammed Ashraf .K.P

    thankyou

  • http://ryancomtechnologies.com Mohammed Ashraf .K.P

    thankyou

  • ALfonso D. Tayong

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

  • ALfonso D. Tayong

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