Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How to disable AutoRun for Windows XP Home by editing the registry?

share|improve this question
    
To answer your second question - yes. Just post it as separate question. However, I'm sure questions along these lines have been asked before, so a search before you post would be in order –  ChrisF Jan 8 '10 at 11:11

4 Answers 4

Open Notepad and copy/paste the following code:

REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]
@="@SYS:DoesNotExist"

Save the file as DisableAutorun.reg. (You have to be sure to change the "Save File as Type" to "All Files" before saving, or Windows will try to save it as a .txt even if you typed in .reg).

Locate the file you just saved and double-click the file to run it. You will receive a prompt asking if you want to add the data to the registry. Click yes to allow the modification.

The above method nulls any request for autorun.inf and works on XP Home or Pro, as well as Windows Vista/7.

Note: If you opt to disable autorun using any other method (e.g. the method John T. suggested), you will first need to install an autorun patch from Microsoft that allegedly resolves issues that cause autorun to run even after it's been disabled.

share|improve this answer
4  
As a side note: Pressing down your left shift key while inserting a media will supress autorun. –  artifex Jan 8 '10 at 14:04

To Disable autorun on all devices:

Install this patch from Microsoft.

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

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\NoDriveTypeAutorun

  1. Right-click NoDriveTypeAutoRun, and then click Modify.
  2. 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.
  3. Click OK, and then exit Registry Editor.
  4. Restart the computer.

Source: How to disable the Autorun functionality in Windows

share|improve this answer

One can also grab TweakUI and use it to disable autorun on drives individually.

(By the way, it's got lots of other cool tweaking powers.)

share|improve this answer

There are different parts in the registry which can contain autorun entries.

I think your best bet is using a tool created for that task.

I can recommend Sysinternals Autoruns for that.

Once you started that and have the list of autorun entries, you can right click any specific one and "jump to entry", it will open regedit for you and navigate to the appropriate key.

share|improve this answer
1  
fretje, i think the question is rather about the Autorun feature in Windows for removable media, not autostart entries for programs/services/drivers. –  Molly7244 Jan 8 '10 at 12:00
    
@Molly: Well, that's definitely possible (actually realized that myself after posting), but not really clear from the question. I think the OP should clarify. –  fretje Jan 8 '10 at 12:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.