How to disable Autoplay and Autorun features in windows

Autoplay and Autorun are two different features in Windows operating systems. When you put a CD/DVD disk into your CD/DVD drive or when you plug any removable storage device (e.g. flash disk or external storage disk) into your USB, Firewire or e-Sata ports two different activities happen in Windows: 

a) "Autorun": Autorun scans the inserted device and if it finds a file named "autorun.inf" in the root directory it executes the commands specified in this file (e.g. automatically launch the installation program).

image

b) "Autoplay": Autoplay begins to read the inserted device and asks the user how to interpret the data in the device by asking what to do with it (e.g. Open, Play, View, etc.)

image

Prior to Windows Vista, when a device or media was inserted, containing an autorun command , the system would automatically execute the program without the user's intervention. This created a major security problem as malicious code might have been executed without the user's knowledge.

In Windows Vista and Windows 7 the Autorun feature is a part of Autoplay feature and the default action is to prompt the user whether autorun command is to be run.

To completely disable Autoplay/Autorun features follow the bellow procedure:

Windows XP Professional, Windows Server 2003,and Windows 2000

1. Go to "Start" > "Run"

image

2. At the "Run" command line type: "gpedit.msc" and choose "OK" to open Group policy editor.

image

3. Inside Group policy editor – at left pane- expand "Computer Configuration" > "Administrative Templates" > "System"

4. At the right pane find the "Turn off Autoplay" setting and double click to open it.

image

5. In the "Turn off Autoplay Properties" windows choose "Enabled" in "All drives" and choose "OK"

image

6. Close "Group Policy" editor and restart your computer.

Windows XP Home

1. Go to "Start" > "Run"

image

2. In the "Run" command box type "regedit" and choose "OK"

image

3. Locate the following entry in the registry:
{HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\NoDriveTypeAutorun}

image

4. Double click to open "NoDriveTypeAutoRun" and in the Value data box, type "FF"(without the quotes) to disable the autorun feature in all drive types and then press "OK"

image
5. Close Registry Editor and restart your computer.

Windows Vista, Windows 7, Windows Server 2008

1. Press "Start" menu button and at the "Search" box type "gpedit.msc" and press Enter

image

2. At the left pane under Computer Configuration expand "Administrative Templates" > "Windows Components" > "Autoplay Policies"

3. At the right pane double click to open "Turn off Autoplay" settings.

image

4. At "Turn off Autoplay" settings window, choose "Enabled" in "All drives" and press "OK" to return to previous window.

image

5. Double click to open "Default behavior for AutoRun" settings

image

6. At "Default behavior for AutoRun" settings window, choose "Enabled" then "Do not execute any autorun commands" and press "OK" to return to the previous window.

image

7. Close Group policy editor and restart your computer.

If this article was useful for you, please consider supporting us by making a donation. Even $1 can a make a huge difference for us in our effort to continue to help others while keeping this site free: