Autoplay" and can be set for CD-ROM, DVD-ROM and removable drives or all drives. Two related policies were added in Vista and Server 2008: Default behavior for AutoRun {| class="wikitable" style="margin:1.5em 1em 1.5em 2em; text:align:center" |- | colspan="4" | |- ! Entry name !! Data type !! Range !! Default |- | | REG_DWORD | | |} Sets the default behavior for AutoRun commands found in autorun.inf files. Prior to Windows Vista, when media containing an autorun.inf specifying an AutoRun task was :inserted, the default action was to automatically execute the program without user intervention. :From Windows Vista the default behaviour is to invoke AutoPlay and represent the AutoRun task as :one of the dialog options. This is also the behaviour when this policy is Not configured or :Disabled. If this policy is Enabled, the behaviour can be changed to either: Completely disable autorun.inf commands or Automatically execute the autorun.inf command as per previous Windows versions. Don't set the always do this checkbox {| class="wikitable" style="margin:1.5em 1em 1.5em 2em; text:align:center" |- | colspan="4" | |- ! Entry name !! Data type !! Range !! Default |- | | REG_DWORD | | |} If this policy is Enabled, the "Always do this..." checkbox in the AutoPlay dialog will not be set :by default when the dialog is shown. Windows 7, Windows Server 2008 R2 In these versions of Windows, the ability of an autorun.inf file to set an AutoRun task, alter double-click behaviour or change context menus is restricted to drives of type DRIVE_CDROM. There are no policy settings that will override this behaviour. Policy locations and settings are as per Windows Vista, Windows Server 2008 above with the addition of: Turn off Autoplay for non-volume devices {| class="wikitable" style="margin:1.5em 1em 1.5em 2em;" |- | colspan="4" | |- ! Entry name !! Data type !! Range !! Default |- | | | | |} If this policy is enabled, AutoPlay will be disabled for non-volume devices. Altering AutoRun behaviour Pressing the Shift key If the key is held down at a certain point in the execution sequence, Windows Vista invokes the AutoPlay dialog regardless of any AutoPlay settings to the contrary. Previous versions of Windows do not execute the AutoRun task. It is essential that the left Shift key is used for this purpose as holding down the right Shift key for eight seconds invokes FilterKeys. Given that Shift must be