Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:


But none of these solutions worked, neither after rebooting.

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


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 ( – 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
I don't have physical access to the computer. – coelhudo Jul 5 '12 at 14:03
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



to 0 to turn on and 1 to turn off.




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

- Nonvolume Devices




to 1

Remove value



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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.