0

Is it possible to prevent or disable autorun/autoplay/device-stage by modifying regedit?

Because of some constraints, I cannot disable by Control Panel options.

I found some related questions here, for example, and some solutions provided by Microsoft, mainly involving this key on regedit:

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

But none of these solutions worked, neither after rebooting.

Is there any other key or value that controls this kind of property?

Edit:

I don't have physical access to the computer, this is my two options are:

Do this through some script that modify a key/value from registry or programmatically.

Edit 2:

Changing the value of NoDriveTypeAutorun above to 0xFF disabled AutoPlay for media files but not for devices.

coelhudo
  • 182
  • 1
  • 1
  • 10
  • Uh, generally... if you can't do it with control panel, you AIN'T gonna be able to do it with regedit... can you even RUN regedit? and edit/save the registry? Lockdowns are for a reason. Not always a GOOD reason... but someone had a reason. Try holding SHIFT when you insert your device, it'll disable auto-run for that insertion. – lornix Jul 05 '12 at 09:11
  • Precisely what kind of "AutoPlay" are you referring to? Because "Autoplay for devices" doesn't really make sense. A USB mouse doesn't have Autoplay; it has driver installation. – MSalters Jul 05 '12 at 15:22
  • When a camera is plugged into usb port for example. It initiates the device stage feature (http://windows.microsoft.com/en-US/windows7/What-is-Device-Stage) – coelhudo Jul 05 '12 at 16:50

2 Answers2

0

Try holding SHIFT when you insert your device, it'll disable auto-run for that insertion.

lornix
  • 11,240
  • 2
  • 30
  • 34
0

I found it. There is two categories:

- AutoPlay Turn On/Off

Set

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DisableAutoplay

to 0 to turn on and 1 to turn off.

Or

Set

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

the value with the mask to turn off. To turn on just apply the default value (0x91 or 0x95).

- Nonvolume Devices

Disable:

Set

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer\NoAutoplayfornonVolume

to 1

Remove value

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Explorer\NoAutoplayfornonVolume

Enable:

Remove both values

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer\NoAutoplayfornonVolume HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Explorer\NoAutoplayfornonVolume

coelhudo
  • 182
  • 1
  • 1
  • 10