🖥️ Batch (CMD)

Disable Lock Screen Notifications (Batch)

Stops app notifications from appearing on the lock screen. Applies the tweak via reg.exe.

By WindowsScripting.com · 589 B
SetDisableLockScreenNotifications.bat
@echo off
:: ============================================================
:: SetDisableLockScreenNotifications.bat
::
:: Disable Lock Screen Notifications.
:: Stops app notifications from appearing on the lock screen.
:: ============================================================

reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\PushNotifications" /v "LockScreenToastEnabled" /t REG_DWORD /d "0" /f

if %ERRORLEVEL% EQU 0 (
    echo Disable Lock Screen Notifications applied.
) else (
    echo Failed to apply tweak. Try running this script as Administrator.
)
pause