disabled ALL notifications per user

This commit is contained in:
Michael H.G. Schmidt 2023-02-02 17:05:15 +01:00
parent 4a54a815aa
commit 417e1d0b9a

View File

@ -281,6 +281,18 @@ reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" ^
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" ^ reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" ^
/v "ShowFrequent" /t REG_DWORD /d 0 /f 1>nul /v "ShowFrequent" /t REG_DWORD /d 0 /f 1>nul
echo Disabling notification center ...
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Explorer" ^
/v "DisableNotificationCenter" /t REG_DWORD /d 1 /f 1>nul
echo Disabling push notifications ...
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications" ^
/v "ToastEnabled" /t REG_DWORD /d 0 /f 1>nul
echo Disabling autoplay ...
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers" ^
/v "DisableAutoplay" /t REG_DWORD /d 1 /f 1>nul
rem no SEAFILE for the Admin! rem no SEAFILE for the Admin!
if "%USERNAME%" == "%localadmin%" GOTO SEAFILE_DONE if "%USERNAME%" == "%localadmin%" GOTO SEAFILE_DONE
@ -315,6 +327,7 @@ del /F /Q "%APPDATA%\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" 2>nul
rem ... stupid OS! (it pins "dead" icons to the taskbar) rem ... stupid OS! (it pins "dead" icons to the taskbar)
echo Removing all pinned icons from taskbar ... echo Removing all pinned icons from taskbar ...
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /f > NUL 2>&1 reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /f > NUL 2>&1
call :RESTART_EXPLORER call :RESTART_EXPLORER
rem create a statusfile (this codeblock must be executed only once per user) ... rem create a statusfile (this codeblock must be executed only once per user) ...