AutoPlay - Enable or Disable

How to Enable or Disable AutoPlay for Drives in Vista, Widows 7, and Windows 8

   Information
AutoPlay lets you choose an action for different kinds of media when you plug in a device, insert media, or receive content from another person using Tap and Send (Windows 8). 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, or DVDs. 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 either all drives or CD/DVD and removable media drives for all or specific users in Vista, Windows 7, and Windows 8.

You must be logged in as an administrator to be able to do the steps in this tutorial.

   Note
When a CD/DVD disc is inserted or a USB drive is connected to your system, Windows looks in the root directory of the new disc or drive for a file named autorun.inf. If found, Windows executes the instructions (keys) in that file.

For more about: Autorun vs Autoplay – What’s the Difference?

Since Windows 7, Vista, and XP, two important changes were made to help improve security:

NOTE: For more on this, see: AutoRun changes in Windows 7 - Security Research & Defense - Site Home - TechNet Blogs

  1. AutoPlay will no longer support the AutoRun functionality for non-optical removable media. In other words, AutoPlay will still work for CD/DVDs but it will no longer work for USB drives. For example, if an infected USB drive is inserted on a machine then the AutoRun task will not be displayed. This will block the increasing social engineer threat highlighted in the SIR. The dialogs below highlight the difference that users will see after this change. Before the change, the malware is leveraging AutoRun (box in red) to confuse the user. After the change, AutoRun will no longer work, so the AutoPlay options are safe.
  2. A dialog change was done to clarify that the program being executed is running from external media.
By default in Windows 7, Vista, and XP now, the only [Autorun] keys available for USB/removable drives are below. The rest of the keys are ignored.
  • label - This key is responsible for displaying a custom name (label) for a CD/DVD or USB drive in Computer when a CD/DVD is inserted or a USB drive is connected.
  • icon - This key is responsible for displaying a custom icon for a CD/DVD or USB drive in Computer when a CD/DVD is inserted or a USB drive is connected.
EXAMPLE: AutoPlay pop-up
NOTE: These are just examples of the AutoPlay pop-up dialog that you will see when you connect say a USB flash drive or a DVD. The options you have in the AutoPlay window will depend on what you connected or inserted, and what action you have selected for it in the AutoPlay settings below.
Example.jpg



OPTION ONE

Enable or Disable AutoPlay using a REG File Download


NOTE: This option affects all users on the computer.
1. Do step 2, 3, or 4 below for what you would like to do.

2. To Enable AutoPlay
NOTE: This is the default setting.
A) If not already, you'll need to turn On AutoPlay in Windows 7 or Windows 8.

B) Click/tap on the Download button below to download the file below, and go to step 5 below.
Enable_AutoPlay.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 5 below.
Disable_AutoPlay_for_All_Drives.reg

Download


4. To Disable AutoPlay for CD/DVD and Removable Media Drives for Only Current User
A) If not already, you'll need to turn On AutoPlay in Windows 7 or Windows 8.

B) Click/tap on the Download button below to download the file below, and go to step 5 below.
Disable_AutoPlay_for_Removable_Media_Drives.reg

Download


5. Save the .reg file to the desktop.

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

7. Click/tap on Run, Yes (UAC-Windows 7/8) or Continue (UAC-Vista), Yes, and OK when prompted.

8. When done, you can delete the downloaded .reg file if you like.

9. Log off and log on, or restart the computer to fully apply.



OPTION TWO

Enable or Disable AutoPlay in the Local Group Policy Editor


1. Open the all users, specific users or groups, or all users except administrators Local Group Policy Editor for how you want this policy to be applied.

2. In the left pane, click/tap on to expand User Configuration, Administrative Templates, Windows Components, and AutoPlay Policies. (see screenshot below)
GPEDIT-1.jpg
3. In the right pane, double click/tap on Turn off Autoplay, and click/tap on Edit. (see screenshot above)

4. Do step 5, 6, or 7 below for what you would like to do.

5. To Enable AutoPlay
A) If not already, you'll need to turn On AutoPlay in Windows 7 or Windows 8.

B) Select (dot) either Not Configured or Disabled, and go to step 8 below. (see screenshot below step 8)
NOTE: Not Configured is the default setting.
6. To Disable AutoPlay for All Drives
A) Select (dot) Enabled, and select All drives in the "Options" drop down menu, and go to step 8 below. (see screenshot below step 8)
7. To Disable AutoPlay Only for CD/DVD and Removable Media Drives
A) If not already, you'll need to turn On AutoPlay in Windows 7 or Windows 8.

B) Select (dot) Enabled, and select CD-ROM and removable media drives in the "Options" drop down menu, and go to step 8 below.(see screenshot below step 8)
8. Click/tap on OK. (see screenshot below)
GPEDIT-2.jpg
9. Close the Local Group Policy Editor window.
That's it,
Shawn





 

Attachments

Last edited:
How about a "Removable drives" type option?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
There are only the same ones as in this picture except in devices there is one camera and two phones.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 10 Pro x64
CPU
AMD FX-8350
Motherboard
Gigabyte 970A-UD3P
Memory
Kingston Hyperx 2x8GB
Graphics Card(s)
MSI GeForce GTX 1060 6GB
Monitor(s) Displays
Dell U2415
Screen Resolution
1920x1200
Hard Drives
Kingston HyperX 3K 120GB (OS)
Samsung 850 EVO 250GB
Hitachi Deskstar 4TB
PSU
EVGA SuperNOVA 650 G2
Case
Aerocool XPredator Black Edition
Cooling
Scythe Mugen 4
Keyboard
Razer Blackwidow Ultimate Stealth 2014
Mouse
Razer Naga Chroma
Internet Speed
100 Mbit/s
Antivirus
Comodo Internet Security Premium
Browser
Mozilla Firefox
In that case, what you did would be a good workaround.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Tons of thanks

In spite of having formatted my PC twice and taking help from manufacturers, nothing worked as a cheap application known as 'Registry Reviver' played havoc with my registry as soon as I installed it after re-formatting. Totally exhausted, I used the following link sent by you. http://www.sevenforums.com/tutorials/216706-autoplay-enable-disable.html
This corrected my registry. I removed 'Registry Reviver' from my machine and now everything is fine. All my gadgets are being recognized by the PC. I love my PC and your forum provided much needed help to me when I had lost all hopes.
Regards,
Col. Narender Singh
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 32 Bit Professional
CPU
Intel(R) Pentium(R) CPU [email protected]
Motherboard
Intel Corporation DH61HO
Memory
Installed 8 GB 3.41 GB Usable
Graphics Card(s)
Don't Know
Hard Drives
500 GB
Antivirus
ESET Security
Browser
IE9 and Google Chrome
This trick fails for me

This no change for me. I've tried this trick, also try to On or Off method, but I have no luck yet. I don't know what's wrong my Win7 x64...
Inserting all the UFD/RemovableDisk without popup occurs, but there is appear in Windows Explorer.. so weird?
 
Last edited:

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
own assembly
OS
Windows 7 Ult x64
CPU
AMD X4 Quad Core 3.1GHz
Motherboard
Gigabyte socket FM2+
Memory
DDR3 16GB
Graphics Card(s)
Radeon R5 230 2GB
Sound Card
Xonar D-KARAX
Monitor(s) Displays
ViewSonic 24'
Hard Drives
SSD + WDC
PSU
Antec VP500W
Antivirus
Kaspersky
Browser
Firefox
Hello jacky, :)

Does the removable USB show up in Auto Play listed under Devices while connected?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Hello jacky, :)

Does the removable USB show up in Auto Play listed under Devices while connected?
Under the Autoplay list, all written "Choose a default" since the beginning, just the same if I click 'Reset all defaults' + Save button. When inserted USB there's no popup at all, but all visible in Windows Explorer.
Should I fill 'Ask me every time', but I cannot see USB options there..?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
own assembly
OS
Windows 7 Ult x64
CPU
AMD X4 Quad Core 3.1GHz
Motherboard
Gigabyte socket FM2+
Memory
DDR3 16GB
Graphics Card(s)
Radeon R5 230 2GB
Sound Card
Xonar D-KARAX
Monitor(s) Displays
ViewSonic 24'
Hard Drives
SSD + WDC
PSU
Antec VP500W
Antivirus
Kaspersky
Browser
Firefox
If you see anything for removable drives, you could set it to "Ask me every time" to see if that may help.

If you have AutoPlay enabled and turned on, then double check to see if you may have any group policies enabled that could affect AutoPlay.

Does this happen with all USB flash drives, or just this one?

Group Policy Editor - Quickly View Enabled Policies in Windows
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
This happen for any USB flash includes Removable Disk (External USB plug).

Removable drives? - None in the list, that means I have to set in the Local Group Policy Editor, then click dot Disabled.. is it right? (Currently at the setting 'Not Configured').

What is this 'cause I installed TuneUp Utilities or Acronis? Because once installed, the popup no longer appear.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
own assembly
OS
Windows 7 Ult x64
CPU
AMD X4 Quad Core 3.1GHz
Motherboard
Gigabyte socket FM2+
Memory
DDR3 16GB
Graphics Card(s)
Radeon R5 230 2GB
Sound Card
Xonar D-KARAX
Monitor(s) Displays
ViewSonic 24'
Hard Drives
SSD + WDC
PSU
Antec VP500W
Antivirus
Kaspersky
Browser
Firefox
You would want group policy settings set to "Not Configured" instead.

It wouldn't hurt to check to see if TuneUp Utilities may have some setting that could affect AutoPlay. I don't think Acronis would be of issue for this.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Thanks for advice, I will check more deeply into all the config settings TuneUp.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
own assembly
OS
Windows 7 Ult x64
CPU
AMD X4 Quad Core 3.1GHz
Motherboard
Gigabyte socket FM2+
Memory
DDR3 16GB
Graphics Card(s)
Radeon R5 230 2GB
Sound Card
Xonar D-KARAX
Monitor(s) Displays
ViewSonic 24'
Hard Drives
SSD + WDC
PSU
Antec VP500W
Antivirus
Kaspersky
Browser
Firefox
It wouldn't hurt to check to see if TuneUp Utilities may have some setting that could affect AutoPlay.

Hey Brink, I just check TuneUp is not the main cause.
Then, suddenly my AutoPlay just back to normal like initial. Apparently it will turn to normal when loading a CD driver. So, firstly it should be lured with a CD driver that have autorun. Then, all devices now always keep AutoPlay popup when inserted, including USB.. it's fun, thanks Brink.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
own assembly
OS
Windows 7 Ult x64
CPU
AMD X4 Quad Core 3.1GHz
Motherboard
Gigabyte socket FM2+
Memory
DDR3 16GB
Graphics Card(s)
Radeon R5 230 2GB
Sound Card
Xonar D-KARAX
Monitor(s) Displays
ViewSonic 24'
Hard Drives
SSD + WDC
PSU
Antec VP500W
Antivirus
Kaspersky
Browser
Firefox
I'm glad to hear it sorted itself out for you. :party:
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Back
Top