autorun configuration

D

Dave

I cannot figure out to turn off autorun for my USB drives under Windows XP.
Every time I plug in an SD card or my phone or PDA or any other USB device,
RealPlayer and Webshots manager run. I've looked at the drive
properties --> autorun tab and all drive letters above F (my USB drives are
assigned H and higher) have "prompt me each time to choose an action".

I downloaded TweakUI, and UN-checked "enable autoplay for removable drives".

Nothing has made ANY DIFFERENCE. I plug my phone in and unplug it probably
ten times a day and this is driving me batshit.

Can anyone point me to relevant registry entries that I can nuke to get rid
of this incredibly annoying behaviour?

Thanks in advance

Dave
 
K

Karl Snooks

Dave,
This key, which is of type REG_BINARY, consists of four bytes. The first
byte is a bitmask defining which drive types should be AutoRun. The other
three bytes should be set to zero (0).

The bits in the bitmask correspond to these constants:

Type Bit

DRIVE_UNKNOWN 0

DRIVE_NO_ROOT_DIR 1

DRIVE_REMOVABLE 2

DRIVE_FIXED 3

DRIVE_REMOTE 4

DRIVE_CDROM 5

DRIVE_RAMDISK 6



Setting a bit in the bitmask prevents you from using AutoPlay with the
corresponding drive type. By default, the value in the registry is 0x95.
Bits 0, 2, 4 and 7 are therefore set, which means that drive types
DRIVE_UNKNOWN, DRIVE_REMOVEABLE, and DRIVE_REMOTE don't use AutoPlay
information. (Bit 7 is set to cover future device types.) Altering this
registry value thus allows you to test Autorun.inf files from a floppy disk
(DRIVE_REMOVEABLE), network drive (DRIVE_REMOTE), and so on. For example, to
be able to test AutoPlay from a floppy disk, set the value of the first byte
to 0x91 to enable AutoPlay for floppy disks.

NOTE: Most floppy disk drive controllers do not currently recognize when a
floppy disk has been inserted. To test AutoPlay on a floppy disk, first
alter the registry setting so that bit DRIVE_REMOVEABLE is not set, start
the Windows Explorer, insert the floppy disk, and press the F5 key to
refresh the display.

To test the Autorun.inf file on a given disk, using the right mouse button,
click the icon for the drive in the Windows Explorer. The effects of the
Autorun.inf file should be visible in the context menu.



A value of 0xb5 in the following registry key turns off the AutoRun feature
for CDs:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun



Microsoft does not recommend that you use the following registry key to turn
off the AutoPlay feature:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Cdrom\AutorunThe real
function of this registry key is to turn on or off the media change
notification.




The NoDriveTypeAutoRun subkey value is reset to one of the following
original default values:



Operating system
Default value

Microsoft Windows Server 2003
0x95

Microsoft Windows XP
0x91

Microsoft Windows 2000
0x95






WORKAROUND

To work around this issue, cancel the Turn off Autoplay policy setting
selection in the Active Directory domain environment as follows:

1.
Click Start, click Run, type gpedit.msc, and then click OK.

2.
Expand User Configuration, expand Administrative Templates, and then
expand System.

3.
Double-click the Turn off Autoplay policy.

4.
Select Disabled, click Apply, and then click OK.

Note In Windows 2000, the policy setting is named Disable Autoplay.






MORE INFORMATION

When the NoDriveTypeAutoRun subkey value is reset to one of the original
default values, the computer that you added to an Active Directory domain
can use functions that the Turn off Autoplay policy setting supports.

The Turn off Autoplay policy setting is based on the following registry key
and value pair.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Key Name: NoDriveTypeAutoRun
Key Type: REG_DWORD



SYMPTOMS

When you insert a CD-ROM that contains an Autorun.inf file into your
computer's CD-ROM or DVD-ROM drive, the CD-ROM may not start and run
automatically as expected.

Additionally, when you right-click the CD-ROM or DVD-ROM drive in Windows
Explorer or My Computer, the AutoPlay command may be missing from the
shortcut menu.

This behavior occurs even when the Auto Insert Notification check box is
selected in the CD-ROM settings of Device Manager.



RESOLUTION

To resolve this issue, edit the NoDriveTypeAutoRun entry in the Windows
registry so that it displays the correct value. To do this, follow these
steps.

WARNING: If you use Registry Editor incorrectly, you may cause serious
problems that may require you to reinstall your operating system. Microsoft
cannot guarantee that you can solve problems that result from using Registry
Editor incorrectly. Use Registry Editor at your own risk.

1.
Click Start, and then click Run.

2.
In the Run box, type regedit, and then click OK.

3.
Locate the following registry key:

HKEY_Current_User\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

4.
In the right pane of the Registry Editor window, locate the
NoDriveTypeAutoRun entry.

5.
Edit the entry to display the following correct binary value in the
Value data box:

NoDriveTypeAutoRun 0000 95 00 00 00 To do this, right-click
NoDriveTypeAutoRun, and then click Modify. Under Value data, type 95 00 00
00, and then click OK.




6.
On the Registry menu, click Exit to quit Registry Editor.

7.
Restart your computer.




How to Enable or Disable Automatically Running CD-ROMs

If there is a CD-ROM changer attached to your computer, you may want to
disable automatically running CD-ROMs (the automatic running of a compact
disc [CD] or the automatic playing of an audio CD-ROM). If automatically
running CD-ROMs is enabled with a CD-ROM changer, each time that you insert
a new CD-ROM into one of the trays, Windows cycles through every tray in the
changer.

There is no option to enable or disable automatically running CD-ROMs in the
user interface. To enable or disable automatically running CD-ROMs, you must
edit the registry:

1.
Click Start, click Run, type regedit in the Open box, and then press
ENTER.

2.
Locate and click the following registry key:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CDRom

3.
To disable automatically running CD-ROMs, change the Autorun value to 0
(zero). To enable automatically running CD-ROMs, change the Autorun value to
1.

4.
Restart your computer.


NOTE: This method disables automatically running CD-ROMs. If you want to
disable automatically running CD-ROMs depending on the CD-ROM that you
insert in the CD-ROM drive, you can press and hold down one of the SHIFT key
while you insert the CD-ROM.

There are two other registry keys that can affect this functionality:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
NoDriveTypeAutoRun = 0x00000095

-and-

HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
NoDriveTypeAutoRun = 0x00000095The correct value for each is 0x00000095.



Microsoft does not recommend that you use the following registry key to turn
off the AutoPlay feature:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Cdrom\Autorun

The real function of this registry key is to turn on or off the media change
notification.

karl snooks



|I cannot figure out to turn off autorun for my USB drives under Windows XP.
| Every time I plug in an SD card or my phone or PDA or any other USB
device,
| RealPlayer and Webshots manager run. I've looked at the drive
| properties --> autorun tab and all drive letters above F (my USB drives
are
| assigned H and higher) have "prompt me each time to choose an action".
|
| I downloaded TweakUI, and UN-checked "enable autoplay for removable
drives".
|
| Nothing has made ANY DIFFERENCE. I plug my phone in and unplug it
probably
| ten times a day and this is driving me batshit.
|
| Can anyone point me to relevant registry entries that I can nuke to get
rid
| of this incredibly annoying behaviour?
|
| Thanks in advance
|
| Dave
|
|
 
S

Stan Brown

Thu, 21 Feb 2008 19:12:14 -0800 from Karl Snooks
<[email protected]>:

[a few hundred lines of bits and pieces of Microsoft articles,
reformatted for lower readability and run together with no indication
where one stops and a different topic starts]


Why not just give the links, and let people read the articles in
context and with helpful formatting, like this:


"How to Enable or Disable Automatically Running CD-ROMs"
http://support.microsoft.com/kb/155217


"How to Test Autorun.inf Files"
http://support.microsoft.com/kb/136214


"DVDs and Music CDs Automatically Play After You Change the AutoRun
Registry Value of the CD-ROM"
http://support.microsoft.com/kb/319287


"CD-ROM Does Not Run Automatically After You Insert It into Your CD-
ROM or DVD-ROM Drive"
http://support.microsoft.com/kb/312475


"The NoDriveTypeAutoRun subkey value is reset to the original default
value on a Windows Server 2003-based computer, on a Windows XP-based
computer, or on a Windows 2000-based computer"
http://support.microsoft.com/kb/895108


--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com
A: Maybe because some people are too annoyed by top posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top posting such a bad thing?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top