Published by


Brink's Avatar
Administrator

Posts: 32,340

Show Printable Version 


information   Information
AutoPlay lets you choose an action for different kinds of media when you plug in a device or insert media. You can set AutoPlay to open different kinds of content, such as photos, music, and video on different kinds of media, such as drives, CDs, DVDs, cameras, and phones. For example, you can use AutoPlay to select an app that will automatically open photos on a removable drive when you plug it into your PC. With AutoPlay, you don't have to open the same app or reselect preferences every time you plug in a certain device.

This tutorial will show you how to enable or disable AutoPlay for all drives for all users in Windows 7, Windows 8, and Windows 10.

You must be signed in as an administrator to enable or disable AutoPlay for all drives.
Note   Note
This will not affect AutoPlay for non-volume devices like cameras or phones.

CONTENTS:
  • Option One: Enable or Disable AutoPlay for All Drives in Local Group Policy Editor
  • Option Two: Enable or Disable AutoPlay for All Drives using a REG file


EXAMPLE: "Ask me every time" AutoPlay notification for USB Flash Drive
Name:  AutoPlay_notification.jpg
Views: 1157
Size:  44.4 KB






Enable or Disable AutoPlay for All Drives in Windows OPTION ONE Enable or Disable AutoPlay for All Drives in Windows
Enable or Disable AutoPlay for All Drives in Local Group Policy Editor

Note   Note
In Windows 7, the Local Group Policy Editor is only available in the Professional, Ultimate, and Enterprise editions.

In Windows 8, the Local Group Policy Editor is only available in the Pro and Enterprise editions.

In Windows 10, the Local Group Policy Editor is only available in the Pro, Enterprise, and Education editions.

All editions can use Option Two below.

1. Open the Local Group Policy Editor.

2. In the left pane of Local Group Policy Editor, navigate to the location below. (see screenshot below)

Computer Configuration\Administrative Templates\Windows Components\AutoPlay Policies

Name:  AutoPlay_for_all_drives_gpedit-1.jpg
Views: 1146
Size:  73.2 KB

3. In the right pane of AutoPlay Policies in Local Group Policy Editor, double click/tap on the Turn off AutoPlay policy to edit it. (see screenshot above)

4. Do step 5 (enable) or step 6 (disable) below for what you would like to do.


 5. To Enable AutoPlay for All Drives

A) Select (dot) Not Configured or Disabled, click/tap on OK, and go to step 7 below. (see screenshot below)

NOTE: Not Configured is the default setting.


 6. To Disable AutoPlay for All Drives

A) Select (dot) Enabled, select All drives in the drop menu under Options, click/tap on OK, and go to step 7 below. (see screenshot below)

Name:  AutoPlay_for_all_drives_gpedit-2.jpg
Views: 1116
Size:  94.2 KB

7. You can now close the Local Group Policy Editor if you like.






Enable or Disable AutoPlay for All Drives in Windows OPTION TWO Enable or Disable AutoPlay for All Drives in Windows
Enable or Disable AutoPlay for All Drives using a REG file

Note   Note
The downloadable .reg files below will modify the DWORD values in the registry keys below.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer

NoDriveTypeAutoRun DWORD

(delete) = Enable
ff (hex) = Disable

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

NoDriveTypeAutoRun DWORD

(delete) = default

1. Do step 2 (enable) or step 3 (disable) below for what you would like to do.


 2. To Enable AutoPlay for All Drives

NOTE: This is the default setting.

A) Click/tap on the Download button below to download the file below, and go to step 4 below.

Enable_AutoPlay_for_all_drives.reg

download


 3. To Disable AutoPlay for All Drives

A) Click/tap on the Download button below to download the file below, and go to step 4 below.

Disable_AutoPlay_for_all_drives.reg

download

4. Save the .reg file to your desktop.

5. Double click/tap on the downloaded .reg file to merge it.

6. When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

7. You can now delete the downloaded .reg file if you like.


That's it,
Shawn