Paramètre de notification par défaut : valeur de Registre DefaultNotificationsSettingOrdinateurHKLM\Software\Policies\Google\Chrome
- ID de stratégie
- DefaultNotificationsSetting
- Étendue
- Configuration ordinateur, configuration utilisateur
- Pris en charge sur
- Microsoft Windows 7 ou version ultérieure
- Source
- Google Chrome Policy Templates (version 156.0.8078.80)
- Catégorie
- Google › Google Chrome › Paramètres du contenu
Registre
DefaultNotificationsSetting
REG_DWORDOrdinateurUtilisateur…\Software\Policies\Google\ChromeHKLM\Software\Policies\Google\Chrome Clé actuelle
HKCU\Software\Policies\Google\Chrome
HKCU\Software\Policies\Google\Chrome
- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- Paramètre de notification par défaut
| Entrée | Valeur stockée |
|---|---|
| Autoriser les sites à afficher des notifications sur le bureau | 1 |
| Interdire à tous les sites d'afficher des notifications sur le bureau | 2 |
| Demander confirmation chaque fois qu'un site veut afficher des notifications sur le bureau | 3 |
Appliquer avec .reg · CMD · PowerShell
OrdinateurParamètre valable pour tout l’ordinateur
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome] ; Options (en utiliser une seule) ; Autoriser les sites à afficher des notifications sur le bureau "DefaultNotificationsSetting"=dword:00000001 ; Interdire à tous les sites d'afficher des notifications sur le bureau "DefaultNotificationsSetting"=dword:00000002 ; Demander confirmation chaque fois qu'un site veut afficher des notifications sur le bureau "DefaultNotificationsSetting"=dword:00000003
CMD
:: Options (en utiliser une seule) :: Autoriser les sites à afficher des notifications sur le bureau reg add "HKLM\Software\Policies\Google\Chrome" /v "DefaultNotificationsSetting" /t REG_DWORD /d 1 /f :: Interdire à tous les sites d'afficher des notifications sur le bureau reg add "HKLM\Software\Policies\Google\Chrome" /v "DefaultNotificationsSetting" /t REG_DWORD /d 2 /f :: Demander confirmation chaque fois qu'un site veut afficher des notifications sur le bureau reg add "HKLM\Software\Policies\Google\Chrome" /v "DefaultNotificationsSetting" /t REG_DWORD /d 3 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKLM:\Software\Policies\Google\Chrome' -Force | Out-Null # Options (en utiliser une seule) # Autoriser les sites à afficher des notifications sur le bureau New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DefaultNotificationsSetting' -PropertyType DWord -Value 1 -Force | Out-Null # Interdire à tous les sites d'afficher des notifications sur le bureau New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DefaultNotificationsSetting' -PropertyType DWord -Value 2 -Force | Out-Null # Demander confirmation chaque fois qu'un site veut afficher des notifications sur le bureau New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DefaultNotificationsSetting' -PropertyType DWord -Value 3 -Force | Out-Null
UtilisateurParamètre par compte
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Google\Chrome] ; Options (en utiliser une seule) ; Autoriser les sites à afficher des notifications sur le bureau "DefaultNotificationsSetting"=dword:00000001 ; Interdire à tous les sites d'afficher des notifications sur le bureau "DefaultNotificationsSetting"=dword:00000002 ; Demander confirmation chaque fois qu'un site veut afficher des notifications sur le bureau "DefaultNotificationsSetting"=dword:00000003
CMD
:: Options (en utiliser une seule) :: Autoriser les sites à afficher des notifications sur le bureau reg add "HKCU\Software\Policies\Google\Chrome" /v "DefaultNotificationsSetting" /t REG_DWORD /d 1 /f :: Interdire à tous les sites d'afficher des notifications sur le bureau reg add "HKCU\Software\Policies\Google\Chrome" /v "DefaultNotificationsSetting" /t REG_DWORD /d 2 /f :: Demander confirmation chaque fois qu'un site veut afficher des notifications sur le bureau reg add "HKCU\Software\Policies\Google\Chrome" /v "DefaultNotificationsSetting" /t REG_DWORD /d 3 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKCU:\Software\Policies\Google\Chrome' -Force | Out-Null # Options (en utiliser une seule) # Autoriser les sites à afficher des notifications sur le bureau New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DefaultNotificationsSetting' -PropertyType DWord -Value 1 -Force | Out-Null # Interdire à tous les sites d'afficher des notifications sur le bureau New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DefaultNotificationsSetting' -PropertyType DWord -Value 2 -Force | Out-Null # Demander confirmation chaque fois qu'un site veut afficher des notifications sur le bureau New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DefaultNotificationsSetting' -PropertyType DWord -Value 3 -Force | Out-Null