Autorun, Autoplay

General

There are two different kinds of autorun, also called autoplay, that are technically quite distinct. One is that some programs run on their own after your computer is booted and a user logs on. This is sometimes called autostart or autorun.

The other is that some programs are automatically loaded when you insert removable drive media like a DVD or some other removable storage. This is usually called autoplay or sometimes confusingly also autorun. Let's deal with this first.

Autoplay after inserting a CD or DVD

General

The two most common complaints about autoplay are that it works when it shouldn't and that it doesn't work when it should.

I want to shut it off

To shut it off globally for all CD and DVD drives, use Start, Run ..., regedit to navigate to the following key:

HKEY_LOCAL_MACHINE
 \SYSTEM
  \CurrentControlSet
   \Services
    \Cdrom
REG_DWORD value: Autorun

Change this value from 1 to 0.

To change Autorun for a particular CD or DVD drive, right-click on the drive in Windows Explorer and use the Autorun tab.

More information on annoyances.org

I want autoplay, but it doesn't work right on my machine

Here is a repair utility that can be distributed freely:

http://www.bigblackglasses.com/staff/downloads/autofix.exe

The utility is a simple executable that checks the autoplay (also called autorun) settings on the machine and offers to repair the problems it finds. It also outputs a log of the checks, what it found, the repair steps attempted and the repair results in the user's My Documents folder.

The wizard does not replace or modify any binaries on the system. It just modifies settings (mostly bringing them back to factory settings). It will not modify settings unless the user requests it by pressing one of the many Repair buttons.

It is provided AS IS with no warranties, and confers no rights.

Why does a program run on its own?

The cause that is the easiest to handle is that a shortcut to the program has been placed in the Startup folder of the Start menu either in the profile of the user or in the All Users profile. You can see those by clicking on the Start button and choosing All Programs.

To check particularly the All Users profile's menu, right-click on the Start button and elect to open or use Explorer on the All Users start menu.

The following Microsoft Knowledge Base article lets you manage the most common autostart options on your computer:

How to Troubleshoot By Using the Msconfig Utility in Windows XP
http://support.microsoft.com/kb/310560/

In short, click on the Start button, choose Run... and enter: msconfig

A much more thorough tool is Autoruns from www.sysinternals.com.

One particular problem can be that a folder opens every time you log on to Windows. This can be caused by a path that contains at least one space, but is not enclosed in double quotes. You can try to repair this manually (see below), or you can disable or remove that path if you are sure you don't need it.

If you want to delve into the details manually, here is where to find the most important places and some more by using Windows Explorer and the registry editor.

 
Folders with shortcuts

\Documents and Settings\All Users\Start Menu\Programs\Startup

\Documents and Settings\%USERNAME%\Start Menu\Programs\Startup

 
Registry keys

HKEY_LOCAL_MACHINE
 \Software
  \Microsoft
   \Windows
    \CurrentVersion
     \Run

HKEY_CURRENT_USER
 \Software
  \Microsoft
   \Windows
    \CurrentVersion
     \Run

HKEY_LOCAL_MACHINE
 \SOFTWARE
  \Microsoft
   \Windows
    \CurrentVersion
     \policies
      \Explorer
       \Run

HKEY_LOCAL_MACHINE
 \Software
  \Microsoft
   \Windows
    \CurrentVersion
     \RunOnce

HKEY_CURRENT_USER
 \Software
  \Microsoft
   \Windows
    \CurrentVersion
     \RunOnce

HKEY_LOCAL_MACHINE
 \Software
  \Microsoft
   \Windows
    \CurrentVersion
     \RunServices

HKEY_LOCAL_MACHINE
 \Software
  \Microsoft
   \Windows
    \CurrentVersion
     \RunServicesOnce

HKEY_LOCAL_MACHINE
 \Software
  \Microsoft
   \Windows
    \CurrentVersion
     \RunOnce
      \Setup

HKEY_CURRENT_USER
 \Software
  \Microsoft
   \Windows NT
    \CurrentVersion
     \Windows
   Value: run

HKEY_LOCAL_MACHINE
 \System
  \CurrentControlSet
   \Control
    \VMM32Files

HKEY_LOCAL_MACHINE
 \System
  \CurrentControlSet
   \Services
    \VxD
Average: 4 (6 votes)