@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