MSFN Forum: Why can't I disable CDROM Autoplay in Windows7? - MSFN Forum

Jump to content


Windows 7 forum rules

If you have questions about customizing Windows 7 that are vLite-specific, please post them in the vLite forum, not here. If you have questions regarding the unattended installation of Windows 7, please post them in the Unattended Windows 7/Server 2008 R2 section.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Why can't I disable CDROM Autoplay in Windows7?

#1 User is offline   GrofLuigi 

  • GroupPolicy Tattoo Artist
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,277
  • Joined: 21-April 05
  • OS:none specified
  • Country: Country Flag

Posted 29 June 2012 - 02:29 PM

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"

This post has been edited by GrofLuigi: 30 June 2012 - 03:07 AM



#2 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 29 June 2012 - 02:54 PM

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

#3 User is offline   GrofLuigi 

  • GroupPolicy Tattoo Artist
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,277
  • Joined: 21-April 05
  • OS:none specified
  • Country: Country Flag

Posted 30 June 2012 - 03:04 AM

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 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,983
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 30 June 2012 - 04:11 AM

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

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



#5 User is offline   GrofLuigi 

  • GroupPolicy Tattoo Artist
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,277
  • Joined: 21-April 05
  • OS:none specified
  • Country: Country Flag

Posted 30 June 2012 - 11:07 AM

View Postdencorso, on 30 June 2012 - 04:11 AM, said:

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 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 01 July 2012 - 02:34 AM

Maybe that can help you:

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

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

Regards

#7 User is offline   GrofLuigi 

  • GroupPolicy Tattoo Artist
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,277
  • Joined: 21-April 05
  • OS:none specified
  • Country: Country Flag

Posted 01 July 2012 - 02:57 AM

View Postmyselfidem, on 01 July 2012 - 02:34 AM, said:


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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy