Tips and TricksWindows Tips

Window XP Tips: Turn off Autoplay

Autoplay play feature is not only available in CD drives, but also on the flash drives and external hard drives that you connect to your PC. In any case your external drives or CDs are infected with virus or malwares, then chances are there that your PC could also be infected with the autoplay feature. Best way to combat this issue is to disable autoplay on all your system drives.

To disable autoplay on all drives, best method is to change it through Group Policy Editor. To do this click run and type gpedit.msc and press enter. Navigate to Local Computer Policy-> Computer Configuration->Administrative Templates-> System. Now on the right panel double click Turn off Autoplay.  Now select enabled and choose All drives from the dropdown list and click ok.



Now autoplay feature will be disabled on all drives which you connect to your PC.

Nirmal is a Technology Blogger and a Microsoft MVP in Windows. Blogging has been his passion for more than a decade now, he started with this blog in 2007. He can be contacted at You can find Nirmal on , and .

You may also like


  1. Nice, tip. I use to pres and hold shift key to avoid autoplay when I plugin a drive.

  2. @Smackall,
    Thanks for that tip. There are many ways I guess.

  3. Good one Nirmal, I was searching for this for a long time 🙂

    One suggestion abt the website: Since you are using feedburner, can’t u activate the feedflare so that we can add post to delicious digg etc without leaving the feed reader?

    Anoop Engineer

  4. @Anoop,
    Glad that it was helpful for you.
    I have activated Feedflare for my feeds. Now you can use them. 🙂 Thanks for the suggestion.

  5. Nice tip, Nirmal 🙂

  6. I have been using this for quite sometime now . The main source of virus in our college is USB drives.

  7. […] I had written about different methods to disable autoplay of removable drives in Windows XP. Vista provides more option in auto play than in XP and disabling auto play also has […]

  8. Do all your readers have Win XP Professional?? I was surprised no one commented on their inability to find Group Policy Editor in their XP Home Edition. (GPE doesn’t come with XP Home Edition)


  10. thanks for the tips. This is very useful for my laptop.

  11. TweakUI

    Click My Computer
    I only mark only the CD

    Under types
    Click Enable AutoPlay for CD and DVD drives

  12. Jesus Christ! The “Autoplay Off” has to be ON the have Autoplay OFF. God Allmighty!
    This is typically Windows. (Or Windoof, as we say in Germany.)

  13. I type gpedit.msc and press enter and Navigate to Local Computer Policy-> Computer Configuration->Administrative Templates but i can not find system under it. what can i do?

  14. My guess is that your PC does not belong to a domain. Not sure why that matters for this option.

  15. how to turn off auto play in window xp home edition?

  16. I was wondering the same thing, nasa! within two hours of your comment…

  17. “Windows cannot find gpedit.msc. Make sure you typed the name correctly.”

  18. Wonder why no one mentioned that this doesn’t work in home version since that includes most xp users. For Home version you need to go into registry. Here is the fix:

    Click Start, click Run, type regedit in the Open box, and then click OK.
    Locate and then click the following entry in the registry:


    Right-click NoDriveTypeAutoRun, and then click Modify.
    In the Value data box, type 0xFF to disable all types of drives. Or, to selectively disable specific drives, use a different value as described in the “How to selectively disable specific Autorun features” section.
    Click OK, and then exit Registry Editor.
    Restart the computer.

  19. […] Ismeroseim nagy reszenek folyamatosan meggyulik a baja szamitogepes virusokkal. Termeszetesen en se vagyok immunis, de megfelelo korultekintessel, es szoftver hasznalattal csokkentheto a fertozes valoszinusege. Tipp: A kartevok egy reszet elkerulheted, ha kikapcsolod az autorun-t a cd/dvd es USB meghajtokon. Itt van egy link hogyan: Window XP Tips: Turn off Autoplay […]

  20. This is something I found useful for an external drive
    How do I turn off Autoplay in Windows XP for my external hard drive?
    In Windows XP a window will pop-up asking you “What do you want Windows to do?” when your external drive is detected.
    This Window can be disabled by following these steps:

    1. Open My Computer.
    2. Right click on the drive letter assigned to your external drive.
    3. Choose properties.
    4. Click on the Autoplay tab.
    5. Click the “Select an action to perform” option.
    6. Choose “Take no action”.
    7. Click the OK button.

  21. […] six months but i do not have a virus in my machine. the way to turn off autorun is posted here Window XP Tips: Turn off Autoplay i keep a check for viruses on my machine just for my own satisfaction. this is the online virus […]

  22. Great thanks..

  23. that was helpful…

Leave a reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.