Disable Browser Notifications

This component can alter the setting for Notifications in the browser, or alter the system setting preventing browsers from sending notifications.

Disable Browser Notifications

A client want to keep employees focused on their tasks, and remove distractions such as the facebook notifications and news items that keep popping up on the users computer. My first reaction was to set browsers to deny Notification requests. This works great to prevent new sites from being added to the allowed notifications, but sites that are already there retain the ability to send notifications. So I added the option to move up a level and just block the browser from sending notifications as a system setting which prevents browsers from sending notifications alltogether. In situations where that isn’t going to make a difference, I decided to turn off browsers from in System -> Notifications. If it is a new system, setting this setting to Deny will prevent users from adding any sites to the allowed list.

This component alters the registry to obtain the desired goal.

HKLM:\SOFTWARE\Policies\Google\Chrome\DefaultNotificationsSetting  1=Allow 2=Deny 3=Ask
HKLM:\SOFTWARE\Policies\Google\Edge\DefaultNotificationsSetting  1=Allow 2=Deny 3=Ask

If Block or Unblock are set, the registry entry is:

HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\Chrome\Enabled 0=Blocked 1=Unblocked

HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\Edge\Enabled 0=Blocked 1=Unblocked

Level
Name
Value
Notes
Component
action
0,1
What Notification setting to enforce

If this component downloads any external files other then grabbing the script from our repository, they will be listed here so you can do your own due diligence if needed.

Filename
URL
Path
Notes
Nothing downloaded from the internet

8/26/2022 – Initial Release

11/25/2023 – Updated to v4 launcher

GET IN TOUCH