Skip to content

Instantly share code, notes, and snippets.

@mark05e
Created July 21, 2021 19:37
Show Gist options
  • Save mark05e/d3fcf85e01a0bbc557fc02bef96e1669 to your computer and use it in GitHub Desktop.
Save mark05e/d3fcf85e01a0bbc557fc02bef96e1669 to your computer and use it in GitHub Desktop.
# https://www.reddit.com/r/msp/comments/oolx6j/powershell_disabling_chrome_notification/
if ((Test-Path -LiteralPath "Registry::\HKEY_CURRENT_USER\Software\Policies\Google\Chrome") -ne $true) {
New-Item "Registry::\HKEY_CURRENT_USER\Software\Policies\Google\Chrome" -force -ea SilentlyContinue
};
New-ItemProperty -LiteralPath 'Registry::\HKEY_CURRENT_USER\Software\Policies\Google\Chrome' -Name 'DefaultNotificationsSetting' -Value '2' -PropertyType DWord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment