AutoPlay - Turn On or Off

How to Turn AutoPlay On or Off in Windows 7

   Information
AutoPlay lets you choose which action or program to use automatically for different kinds of digital media when connected, such as music CDs or pictures from your digital camera.

When you turn AutoPlay on, you can choose what should happen when you insert different types of digital media into your computer. For example, you can choose which digital media player is used to play CDs.

When AutoPlay is turned off, you are no longer prompted by AutoPlay to choose what you want to do when you insert digital media into your computer.

This tutorial will show you how to turn AutoPlay on or off in Windows 7.

   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?

In 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.
   Warning
AutoPlay requires the Shell Hardware Detection service to be set to Started and Automatic to run.


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

To Turn AutoPlay On or Off in Control Panel

1. Open the control panel (icons view), and click on the AutoPlay icon.

2. To Turn On AutoPlay
NOTE: This is the default setting. A) Check the Use AutoPlay for all media and devices box. (see screenshot below)

B) In the drop down menu for each type of media or device, you can choose a default action to happen when these types are connected. (see screenshot below)

C) Go to step 4.
3. To Turn Off AutoPlay Completely A) Uncheck the Use AutoPlay for all media and devices box. (see screenshot below)
4. Click on the Save button, and close the control panel. (see screenshot below) AutoPlay.jpg
5. You may also wish to check to see if you wanted to enable or disable AutoPlay and/or Enable AutoPlay for non-volume devices as well.



OPTION TWO

To Turn AutoPlay On or Off using a REG File Download


1. Do Step 2 or 3 below for what you would like to do.

2. To Turn On AutoPlay
NOTE: This is the default setting. A) Click on the Download button below to download the file below, and go to step 4 below. Turn_On_AutoPlay.reg

Download


3. To Completely Turn Off AutoPlay A) Click on the Download button below to download the file below, and go to step 4 below. Turn_Off_AutoPlay.reg

Download


4. Save the .reg file to your desktop.

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

6. When prompted, click on Run, Yes (UAC), Yes, and OK to approve merging the .reg file.

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

8. You may also wish to check to see if you wanted to enable or disable AutoPlay and/or Enable AutoPlay for non-volume devices as well.
That's it,
Shawn


 

Attachments

Last edited:
Just after my annual clean install of Windows 7 AutoPlay is working perfect again thank you Shawn :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home Built
OS
Win 7 Pro x64, Win 10 Pro x64, Linux Light x86
CPU
Core i7 3770K
Motherboard
Gigabyte GA-Z77P-D3
Memory
Crucial Ballistix Sport 8GB
Graphics Card(s)
ASUS GeForce GTX 650 Ti
Sound Card
On board
Monitor(s) Displays
ASUS 22 W/S
Screen Resolution
1920 x 1080
Hard Drives
Intel 320 Series SSD, WD Caviar Black 1TB
PSU
Corsair CX 750w
Case
Black Night
Cooling
120mm fans front/back, Coolermaster Hyper 212 Evo
Keyboard
Razer Blackwidow Expert 2013 Mechanical Keyboard
Mouse
Logitech G300 Gaming Mouse
Internet Speed
20mb Unlimited
Antivirus
ZA Antivirus + Firewall
Browser
Cyberfox
Other Info
Powered USB Hub, External Drives 3 x 1TB, Phone Dock.
Great news Stephanie.

:thumbsup:
 

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