Home/AutoPlay vs AutoRun

Explainer

AutoPlay vs AutoRun: What Each Windows Setting Does

Two Windows features share a confusing history and nearly identical names. AutoPlay asks what to do when media appears. AutoRun reads a file on the drive and may start a program. Knowing which is which tells you which setting to change and what each one cannot protect against.

Editorial TeamNovember 20265 min readLast verified: November 2026

Quick answer

AutoPlay is the prompt Windows shows when you plug in a drive, and you control it in Settings under AutoPlay. AutoRun is the older mechanism that follows instructions in autorun.inf, and for USB drives it has been disabled by default since Windows 7. Turn off both for full coverage.

At a glance

TopicAutoPlay and AutoRun
Applies toWindows 11, 10 and 7
Short versionPrompt versus instruction file
Time needed5 minutes to read
CostFree
Last verifiedNovember 2026
AutoPlay dialog and an autorun.inf file shown side by side as two separate Windows mechanismsTwo panels comparing the AutoPlay prompt with the autorun.inf file. AutoPlay you choose what happens autorun.inf [autorun]open=setup.exe action=Open folder a file the drive carries vs

The Difference in One Table

The two features differ in who decides. With AutoPlay, a person picks an action from a menu. With AutoRun, the drive itself supplies instructions. That distinction explains why autorun malware was dangerous and why a prompt, once tamed, rarely is.

AutoPlay and AutoRun compared
QuestionAutoPlayAutoRun
PurposeAsks what to do with new mediaFollows instructions in autorun.inf
Where you see itPop-up or notificationNothing, it runs in the background
USB drives todayActive unless you turn it offCommands ignored since Windows 7
Optical discsActivePartly honoured
ControlSettings, Group Policy, registryNoAutorun policy and registry value
Main riskAccidental openingSilent execution
Practical adviceTurn it off or set Take no actionBlock commands with NoAutorun = 1

Which setting does my situation need?

Choose what you want to stop.

Goal

AutoPlay. Use the Settings toggle or the Take no action default.

How Windows Changed Autorun Over Time

Microsoft first softened autorun in Windows 7, which stopped offering autorun tasks for non-optical media, then released update KB971029 to bring the change to XP and Vista. After that, drive-to-drive worms lost their easiest route and attackers shifted to disguised shortcuts and device spoofing.

Timeline of Microsoft changes that removed autorun tasks for USB drivesFrom the Windows 7 release candidate to Windows 11. 2009Windows 7 RCends USB autorun Aug 2009KB971029 forXP and Vista Feb 2011Update pushedvia Windows Update TodayWindows 11: no USBautorun task
The shift from autorun files to user-assisted tricks.

Removable media have stayed a favourite carrier anyway, as the overview of removable storage and its risks explains.

Reading the NoDriveTypeAutoRun Bit Mask

The value NoDriveTypeAutoRun is a bit field where each bit switches AutoPlay off for one drive type. Setting every bit gives 0xFF, which covers all drive types. A smaller mask such as 0x04 covers only removable drives and leaves network and unknown types active.

Bit values of the NoDriveTypeAutoRun registry setting for each Windows drive typeValues 0x01 to 0x80 and 0xFF for all drive types. NoDriveTypeAutoRun is a bit field: add the values of the drive types you want to switch off 0x01unknown 0x04removable 0x08fixed 0x10network 0x20CD-ROM 0x40RAM disk 0x80unknown 0xFFall types An external USB hard disk can report itself as fixed (0x08), not removable (0x04) That is why 0xFF is the safer value than 0x04 alone
Each bit stands for one drive type.

Putting It Into Practice

Apply both controls and confirm with a read-back. The main guide lists the steps for the Settings toggle, Group Policy and registry, and a PowerShell snippet confirms the values. Together they remove the prompt and block autorun commands without any extra software.

The full procedure is in the main guide under step-by-step methods. Home users should use the registry walkthrough, and offices should read the policy guide.

See USB Block on NewSoftwares.net

AutoPlay and AutoRun Questions

Four questions cover the confusion that remains after the comparison: whether the two features are the same, what Windows 11 does today, which setting to change first, and what the bit mask value means in practice.

Is AutoPlay the same as AutoRun?

No. AutoPlay is the menu Windows shows when you connect media, offering to open a folder or play files. AutoRun reads an autorun.inf file on a drive and can start a program named there. Windows treats them as separate features with separate settings.

Does Windows 11 still run autorun.inf from USB drives?

For USB flash drives it does not run the commands automatically. Microsoft changed Windows 7 so AutoPlay stopped offering autorun tasks on non-optical media, and later versions kept that behaviour. Optical discs still honour more of the file, which is why the registry values remain worth setting on a shared PC.

Which setting should I change first?

Start with AutoPlay in Settings, since it is visible, quick and reversible. Then set the machine-wide registry values or policy so the result holds for every account on the PC. Verify the registry values with PowerShell rather than trusting the Settings page alone, because policy does not lock that page.

What does 0xFF mean in NoDriveTypeAutoRun?

It is a bit mask with every drive-type bit set to one, which turns off AutoPlay for all drive types. Smaller values switch off only some types, such as 0x04 for removable drives, which can leave other drive types active.

Where to Go After This Comparison

Each guide in this series owns one question and links to the others for the rest. Pick the next one that matches what you are trying to do, and return to the main guide whenever you need the full overview.

Back to the main guide to disabling autorun for USB drives