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.

3
  • 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, 2012 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, 2012 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, 2012 at 16:50

2 Answers 2

0

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

3
  • 1
    I don't have physical access to the computer.
    – coelhudo
    Jul 5, 2012 at 14:03
  • 1
    Well, THAT wasn't specified in the original question. But ok...
    – lornix
    Jul 5, 2012 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, 2012 at 16:51
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

You must log in to answer this question.

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