How to Disable Autorun And Autoplay in USB drives

The Windows AutoRun feature enables any external program to run automatically as soon as the media is inserted. This setting leaves you vulnerable to malware.

How to Disable Autorun and autoplay in USB drives and protect your Computer from Viruses

By default whenever you insert a USB device on your computer, the system tries to read (autorun) the content of the attached USB device.

Windows than opens a dialog box giving you the option either to open a folder or play a music file or movie.

This depends upon the content on the USB device. This feature (Autorun) is convenient since you donโ€™t need to open your windows explorer, to explore the content.

But this may be a great security risk.

This feature of windows does have drawbacks too. Especially with your USB flash drives, your Pen drives, memory cards, etc.

If the connected USB device is infected with a virus or spyware, it gets automatically activated and gains entry on to your system without your knowledge.

For security reasons and safety its always a good idea to disable the Autorun in Pen drive and USB drive.

See also How To Remove Autorun Virus From Pendrive With Notepad

So How to Disable Autorun in Pendrive

  • In windows 7, 8 click on the start button and in the search box type โ€œgpedit.mscโ€,
  • In Windows XP click on start โ€“ run โ€“ then type โ€œgpedit .mscโ€ย click on it to open gpedit.
  • In the Group policy (gpedit) window that opens, on the left panel under โ€œComputer Configurationโ€ click on โ€œAdministrative Templateโ€ then on โ€œWindows componentsโ€ to expand

disable autorun and autoplay

Under โ€œWindows componentsโ€ double click on โ€œAutoplay policiesโ€ this will open options on the right panel of the โ€œLocal group policy Editorโ€ window, as shown below.

how to disable autorun

  • On this panel double click on โ€œTurn off autoplayโ€ then you will get this window.

disable autorun and autoplay

  • As it is, by default it’s not configured as shown above. Click on the Radio button that says โ€œEnabledโ€. after which you will see the following option below

disable autorun and autoplay

From the options select โ€œAll drivesโ€, then click Apply then OK. You are done.

From now on whenever you insert/connect any USB devices on to your computer, Windows will do nothing.

It is safer to turn off Autoplay to safeguard your PC from getting infected from viruses and Malware from USB flash drives.

Even from your phone and camera memory cards. This becomes even more important if you share your Pen drives regularly with other PCs.

Alternatively, you can install a software (FREEWARE) on your computer to protect from viruses and Malware from infected USB flash drives, Pen drives.

4 thoughts on “How to Disable Autorun And Autoplay in USB drives”

  1. Good job writing How to Disable Autorun in Pen drive and USB drives – Tips And Freeware. I’d like to learn more on this matter.

  2. download and install 7-zip and then use it to go thrugoh the recyler folder in ur pen drive and then delete it.note:delete it after about 3min after pluging your pen drive into the computer

Comments are closed.