ADMX Viewer
Microsoft.Policies.AutoPlay• Both

Set the default behavior for AutoRun

This policy setting sets the default behavior for Autorun commands. Autorun commands are generally stored in autorun.inf files. They often launch the installation program or other routines. Prior to Windows Vista, when media containing an autorun command is inserted, the system will automatically execute the program without user intervention. This creates a major security concern as code may be executed without user's knowledge. The default behavior starting with Windows Vista is to prompt the user whether autorun command is to be run. The autorun command is represented as a handler in the Autoplay dialog. If you enable this policy setting, an Administrator can change the default Windows Vista or later behavior for autorun to: a) Completely disable autorun commands, or b) Revert back to pre-Windows Vista behavior of automatically executing the autorun command. If you disable or not configure this policy setting, Windows Vista or later will prompt the user whether autorun command is to be run.

Policy Details

Policy Name
NoAutorun
Registry Key
Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Supported On
At least Windows Vista
OMA-URI (CSP)
Autoplay/SetDefaultAutoRunBehavior
OS Build Version:10.0.15063
CSP Version:5.0
Conflict Resolution:LastWrite
Allowed Editions:
EnterpriseEnterprise NProfessionalProfessional NEnterprise EvaluationEnterprise N EvaluationEducationEducation NEnterprise SEnterprise S NEnterprise S EvaluationEnterprise S N EvaluationPro Single LanguagePro ChinaPro WorkstationPro Workstation NPro For EducationPro For Education NEnterprisegEnterprisegnIotenterpriseIotenterprisesCloudeditionnCloudeditionIotenterpriseskIotenterpriseseval
Available Languages
en-us

Configuration Elements

Default AutoRun Behavior

Type: enum

Allowed Values
  • 1 Do not execute any autorun commands
  • 2 Automatically execute autorun commands