🖥️ Batch (CMD)

Check "Disable Lock Screen Notifications" Status (Batch)

Uses reg query to check the current value behind the "Disable Lock Screen Notifications" tweak.

By WindowsScripting.com · 508 B
CheckDisableLockScreenNotificationsStatus.bat
@echo off
:: ============================================================
:: CheckDisableLockScreenNotificationsStatus.bat
::
:: Checks whether "Disable Lock Screen Notifications" is currently applied.
:: ============================================================

reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\PushNotifications" /v "LockScreenToastEnabled" 2>nul

if %ERRORLEVEL% NEQ 0 (
    echo.
    echo 'LockScreenToastEnabled' is not set (using the Windows default^).
)
pause