

User / Computer Configuration -> Administrative Templates-> Windows Components -> Turn off Autoplay This can be proven by going into the local policy editor and navigating to: Is still the correct registry key to disable Autorun. HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutorun HKLM\SYSTEM\CurrentControlSet\Services\ sfloppy\ HKLM\SYSTEM\CurrentControlSet\Services\ Disk\ HKLM\SOFTWARE\Microsoft\ PolicyManager\default\ Autoplay\ DisallowAutoplayForNonVolumeDevices HKLM\SOFTWARE\Microsoft\ PolicyManager\default\ Autoplay\ SetDefaultAutoRunBehavior HKLM\SOFTWARE\Microsoft\ PolicyManager\default\ Autoplay\ TurnOffAutoPlay HKLM\SYSTEM\CurrentControlSet\Services\ cdrom\ HKLM\SOFTWARE\Microsoft\ Windows\CurrentVersion\ Explorer\AutoplayHandlers\Handlers\ MSAutoRun\ HKLM\SOFTWARE\Microsoft\ Windows\CurrentVersion\ Explorer\AutoplayHandlers\EventHandlers\ AutorunINFLegacyArrival\

HKCU\Software\Microsoft\ Windows\CurrentVersion\ Explorer\AutoplayHandlers\UserChosenExecuteHandlers\ AutorunINFLegacyArrival\ HKCU\Software\Microsoft\ Windows\CurrentVersion\ Explorer\AutoplayHandlers\ DisableAutoplay HKCU\Software\Microsoft\ Windows\CurrentVersion\ Explorer\AutoplayHandlers\EventHandlersDefaultSelection\ AutorunINFLegacyArrival\

I did a search for related keywords and found the following that seem like they could be relevant. Is this normal? Have they been superseded? This worked for me in the past with Windows7 (Ultimate/Professional), but these registry keys don't appear to be present on Windows10 (Enterprise). The general consensus is, it's achieved by modifying the values of the following registry keys: HKCU\Software\Microsoft\ Windows\CurrentVersion\ Policies\Explorer\ NoDriveTypeAutorun HKLM\SOFTWARE\Microsoft\ Windows\CurrentVersion\ Policies\Explorer\ NoDriveTypeAutorun It's been covered countless times before, including here on StackExchange, and here by Microsoft. I want to add a few lines to a script with the capacity to enable/disable the Autorun feature.
