Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Why can't I disable CDROM Autoplay in Windows7?


  • Please log in to reply
6 replies to this topic

#1
GrofLuigi

GrofLuigi

    GroupPolicy Tattoo Artist

  • Member
  • PipPipPipPipPipPip
  • 1,369 posts
  • Joined 21-April 05
  • OS:none specified
  • Country: Country Flag
Consider this scenario... :)

I set the dword value "Autorun" in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\cdrom\Parameters to 0. After reboot, my DVD drive is disabled and in device manager it says "The driver cannot start".

I tried it on several computers, same everywhere. Isn't it stupid that it checks the value, but can work with only one possible parameter?

I want this so badly to work (disable CDROM autoplay) I can taste it. :ph34r: The reason is it finally calms my HDD light on the case down. Then I can work on any other reasons for blinking. Is it possible?

GL

* Edit: changed the word "Autorun" to "Autoplay"

Edited by GrofLuigi, 30 June 2012 - 03:07 AM.



How to remove advertisement from MSFN

#2
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
If I well understand you would try to disable Autorun?

Using this reg file do the job:

Disable Autorun
Windows Registry Editor Version 5.00

; NoCDBurning
; ClearRecentDocsOnExit
; Keep NTFS permissions when copying (ForceCopyAclwithFile)
; Disable Autorun (NoDriveTypeAutoRun):
; => value:dword:000000b5 => for CD-Rom
; => value:dword:000000ff(255) => for all drives

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer]
   ;"NoCDBurning"=dword:00000000
   ;"ClearRecentDocsOnExit"=dword:00000001
   ;"ForceCopyAclwithFile"=dword:00000001
"NoDriveTypeAutoRun"=dword:000000b5
  ;"NoDriveTypeAutoRun"=dword:000000ff(255)

Remove the valeur to activate Autorun !
http://en.wikipedia.org/wiki/AutoRun

HTH

*Edit: It seems it is added with Windows 8:

http://msdn.microsof...7(v=vs.85).aspx

http://techdows.com/...s-no-media.html
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#3
GrofLuigi

GrofLuigi

    GroupPolicy Tattoo Artist

  • Member
  • PipPipPipPipPipPip
  • 1,369 posts
  • Joined 21-April 05
  • OS:none specified
  • Country: Country Flag
I think it's called Autoplay and it's controlled solely by the reg value I posted above. It's on a deeper (driver?) level then your first two items posted (by the way, I always disable that other Autorun* on Explorer level with NoDriveTypeAutoRun=ff and other tweaks). This Autorun (Autoplay) i'm talking about is always polling the optical drive and with the reg value I posted above can be stopped on XP, Server2003 (don't know about Vista), but on 7 it always shows the behavior described in my first post. Tried on Win7 RTM, SP1, x86, x64, IDE drive, SATA, drive... Always.

The last two things you posted are for win8, of course, and don't apply.

* "that other Autorun" = explorer seeking for autorun.inf on the root of the drive.

#4
dencorso

dencorso

    Iuvat plus qui nihil obstat

  • Supervisor
  • 6,217 posts
  • Joined 07-April 07
  • OS:98SE
  • Country: Country Flag

Donator

HonorAutoRunSetting should also be set, besides NoDriveTypeAutoRun (KB967715):

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer]
"HonorAutoRunSetting"=dword:00000001
"NoDriveTypeAutoRun"=dword:000000ff


#5
GrofLuigi

GrofLuigi

    GroupPolicy Tattoo Artist

  • Member
  • PipPipPipPipPipPip
  • 1,369 posts
  • Joined 21-April 05
  • OS:none specified
  • Country: Country Flag

HonorAutoRunSetting should also be set, besides NoDriveTypeAutoRun (KB967715):

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer]
"HonorAutoRunSetting"=dword:00000001
"NoDriveTypeAutoRun"=dword:000000ff

Yeah, but that's "that other Autorun" which is looking for autorun.inf. Microsoft isn't helping too much with the confusion either (in the past the two terms were used interchangably). I'm talking about the registry value in my first post, which is obviously at a driver level. As I said, the drive light shows it's polling the CD drive. So I want it to stop polling, which "the other autorun" can't do.

GL

#6
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Maybe that can help you:

How to correct "disable Autorun registry key" enforcement in Windows

http://antivirus.abo...sta_autorun.htm

Regards
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#7
GrofLuigi

GrofLuigi

    GroupPolicy Tattoo Artist

  • Member
  • PipPipPipPipPipPip
  • 1,369 posts
  • Joined 21-April 05
  • OS:none specified
  • Country: Country Flag

Maybe that can help you:

How to correct "disable Autorun registry key" enforcement in Windows

http://antivirus.abo...sta_autorun.htm

Regards

I have done all of them, even @sys:doesnotexist :)

Please notice that my registry entry, which I found with Process Monitor...

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\cdrom\Parameters]
Autorun=dword:0

...is different than the most usually mentioned entry
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom]
Autorun=dword:0

...which doesn't work on 7 (in the sense that it doesn't stop the polling), but also doesn't break the CDRom driver.

Additionally, Win7 also looks for the following key:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom\Parameters\Parameters]

...Which I've just created, so in the next boot tracing I'll see what it will look for underneath. It smells like a bug.

GL




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users