Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
    
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 5 '12 at 9: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 5 '12 at 15:22
    
When a camera is plugged into usb port for example. It initiates the device stage feature (windows.microsoft.com/en-US/windows7/What-is-Device-Stage) – coelhudo Jul 5 '12 at 16:50

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

share|improve this answer
1  
I don't have physical access to the computer. – coelhudo Jul 5 '12 at 14:03
1  
Well, THAT wasn't specified in the original question. But ok... – lornix Jul 5 '12 at 15:53
    
Yeah, I know, I made wrong assumptions when I said that I had "some constraints". Sorry and thanks for helping. – coelhudo Jul 5 '12 at 16:51
up vote 0 down vote accepted

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

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .