Niveau de protection contre le courrier indésirable : valeur de Registre junkmailprotectionUtilisateurHKCU\software\policies\microsoft\office\16.0\outlook\options\mail
- ID de stratégie
- L_JunkEmailprotectionlevel
- Étendue
- Configuration utilisateur
- Pris en charge sur
- Au minimum Windows Server 2008 R2 ou Windows 7
- Source
- Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
- Catégorie
- Microsoft Outlook 2016 › OptionsOutlook › Préférences › Courrier indésirable
Registre
junkmailprotection
REG_DWORDUtilisateur- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- Sélectionner le niveau :
| Entrée | Valeur stockée |
|---|---|
| Aucune protection | 4294967295 |
| Faible (par défaut) | 6 |
| Élevé | 3 |
| Listes fiables uniquement | 2147483648 |
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\options\mail] ; Options (en utiliser une seule) ; Aucune protection "junkmailprotection"=dword:ffffffff ; Faible (par défaut) "junkmailprotection"=dword:00000006 ; Élevé "junkmailprotection"=dword:00000003 ; Listes fiables uniquement "junkmailprotection"=dword:80000000
CMD
:: Options (en utiliser une seule) :: Aucune protection reg add "HKCU\software\policies\microsoft\office\16.0\outlook\options\mail" /v "junkmailprotection" /t REG_DWORD /d 4294967295 /f :: Faible (par défaut) reg add "HKCU\software\policies\microsoft\office\16.0\outlook\options\mail" /v "junkmailprotection" /t REG_DWORD /d 6 /f :: Élevé reg add "HKCU\software\policies\microsoft\office\16.0\outlook\options\mail" /v "junkmailprotection" /t REG_DWORD /d 3 /f :: Listes fiables uniquement reg add "HKCU\software\policies\microsoft\office\16.0\outlook\options\mail" /v "junkmailprotection" /t REG_DWORD /d 2147483648 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail' -Force | Out-Null # Options (en utiliser une seule) # Aucune protection New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail' -Name 'junkmailprotection' -PropertyType DWord -Value 4294967295 -Force | Out-Null # Faible (par défaut) New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail' -Name 'junkmailprotection' -PropertyType DWord -Value 6 -Force | Out-Null # Élevé New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail' -Name 'junkmailprotection' -PropertyType DWord -Value 3 -Force | Out-Null # Listes fiables uniquement New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail' -Name 'junkmailprotection' -PropertyType DWord -Value 2147483648 -Force | Out-Null