Disable USB Autorun to Save PC from USB Viruses

I know how hard it is to keep a PC safe from viruses and trojans as nearly every USB stick carries some undetectable and auto-multiplying virus. Especially in university, where I have to constantly exchange USB sticks, it becomes hard to keep my USB stick safe and clean.

Mostly the viruses that multiply through USB sticks use the autorun function of USB as it does not require any user confirmation and runs secretly in the background, unlike a CD or DVD.

The best way to keep USB viruses from injecting themselves to your PC or laptop is to Disable the USB Autorun feature and I will teach you how to do it.

  1. Click the Start button, then Run and enter "gpedit.msc" without the quotes
  2. Go to Computer Configuration -> Administrative Templates -> System
  3. Scroll down to "Turn off Autoplay" and double click on it
  4. Click on the "Enabled" radio button, then for "Turn off Autoplay on" select "All drives"

autorunusb.jpg

This will now prevent any virus from auto executing itself through a USB drive. Additionaly, it is recommeneded to keep a good free anti virus solution too for additional security e.g. http://www.free-av.com

  • Cold Fire
    Nice permanent way!

    or just keep holding Shift when u insert a USB disk? it cancels the autorun :D
  • I found this post to be useful, so I linked it in my blog

    http://blog.nftecnostar.com/nf-tecnostars-starr...
  • Jignesh
    Hey Good found thankx ;)
  • MBC
    Thank you very much. I alwasy fear to put my USB stick on university computers but now I can do it safely without fear.
  • In hostels, it is very important the disable Autorun as the main culprit of virus infection is the autorun.inf file.
  • Hey DJ
    gpedit.msc is not available in WinXP home edition. So I wrote about how to disable it from registry.
    Pingback should appear on this page automatically.
  • Thanks for that AshFame. Probably someone on WinXP Home Edition can make use of it.
  • Just what many of us needs to do. Cool tip indeed.
  • John
    How do I do it if step no.1 does not work, I click the start button, clicked on run and typed gpedit.msc and the computer said that there was no file, is there an alternate way to turn it off?
  • @John

    I assume you are Windows XP Home. Please use this guide to get the hack working.

    http://blog.ashfame.com/2008/03/disable-usb-aut...
  • Sumit
    Thanx yaar. I really needed it as I use it in university pcs and in cafes too.
  • Zeeshan Shakeel
    it really is worth disabling USB autorun, thanks a lot
  • nononono
    no, it's not working!
    this method only prevents launching the virus when the usb storage is inserted. thats it.

    but when you double-click on drive letter of usb flash, autorun.inf then runs, and the virus is launched.
  • Anoony
    A friend suggested me to remove the autorun.inf completely, will it help?
  • heya thank u very very mch coz i have new USB and it is with too much male wares wich are continuosly auto multiplying them self hope ke this trick will work...!thanks again..!
  • Ron Flowerday
    Provide solution to disable autorun for windows XP (PRO) with SP3

    XP SP2 fix refers to
    "Under Computer Configuration, expand Administrative Templates, and then click System"

    System does not exist in SP3
  • Faisal
    nice!

    thats what i was looking for
  • thanx a lot... it so helpful
  • Uncle Mart
    There is a difference between Autorun and Autoplay. This will explain how to turn off Autorun http://www.raymond.cc/blog/archives/2008/04/22/...
  • Hey, thanks for this great info. Lots of people will benefit from this, most especially now a days, when malwares are surprisingly so easy to propagate.
  • thank you for your sharing...
    it works... :)
  • Scud
    If System template is missing, right click on "Administrative templates", select "Add/Remove templates…", then click on Add, choose System.adm, click on Open, then close. Now you'll see System under Administrative templates.
  • enolaicepz
    i can't open gpedit.msc in our computer it say's
    "You do not have permission to perform this operation"
    "Access is denied"
blog comments powered by Disqus