Prevent virus attack by turning off Autoplay

Autoplay works not only on CD-ROMS, but also on the flash drives and external hard drives that one connects to the PC. If some piece of malware or virus gets on one of those drives, Autoplay will give it a clear path onto the PC. I decided to turn off Autoplay on my PC so that i can be safe from virus-infected drives. If Autoplay is off, then you can have the chance to scan the device for viruses before exploring it.

 IN XP; 1) Click Start, Run and enter GPEDIT.MSC 2) In the tree pane on the left, navigate to Local Computer Policy/Computer Configuration/Administrative Templates/System. 3) Scroll in the right pane and locate the entry for TURN AUTOPLAY OFF. 4) In the Turn Off Autoplay propertie's dialog box, click Enabled and choose All drives from the drop-down list underneath. Click OK

IN VISTA; To open the Run command in Vista, simply Press Windows-R ( windows button plus R). You can follow similar steps above but i learnt from some sources that this approach can cause trivial problems on some systems; because of this, I advise you to use the Microsoft's free TweakUI to get this fixed. Recommended source :

To get TweakUI working on Windows Vista, just download the XP version with the correct architecture from the Microsoft's website (i.e. if you have Vista x64 download TweakUI x64, and if you have Vista x86 download the x86 edition).

 After setup is finished, right click the shortcut to TweakUI -> Properties -> Compatibility. Set it to Run as an administrator and in XP compatibility mode. Close the dialog box and run the application. Let me know if this works on your PC by leaving some comments.


  1. I recently came across your blog and have been reading along. I thought I would leave my first comment. I dont know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.



Post a Comment

We Love To Hear From You But Don't Spam Us With Links!

Want to be notified when I reply your comment? Tick the "Notify Me" box.

If your comment is unrelated to this post or you're trying to ask question about an old post, please drop it at our discussion platform here.