🖥️ Batch (CMD)
Check "Disable Autoplay for All Drives" Status (Batch)
Uses reg query to check the current value behind the "Disable Autoplay for All Drives" tweak.
CheckDisableAutoplayAllDrivesStatus.bat
@echo off
:: ============================================================
:: CheckDisableAutoplayAllDrivesStatus.bat
::
:: Checks whether "Disable Autoplay for All Drives" is currently applied.
:: ============================================================
reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" 2>nul
if %ERRORLEVEL% NEQ 0 (
echo.
echo 'NoDriveTypeAutoRun' is not set (using the Windows default^).
)
pause