Turn off Windows Mail application
Turn off Windows Mail application
Explication
Denies or allows access to the Windows Mail application.
If you enable this setting, access to the Windows Mail application is denied.
If you disable or do not configure this setting, access to the Windows Mail application is allowed.
Denies or allows access to the Windows Mail application.
If you enable this setting, access to the Windows Mail application is denied.
If you disable or do not configure this setting, access to the Windows Mail application is allowed.
Registre
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows Mail- Nom de la valeur
ManualLaunchAllowed
| État | Valeur écrite |
|---|---|
| Activé | REG_DWORD = 0 |
| Désactivé | REG_DWORD = 1 |
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Activer
# Activer : WindowsMail/TurnOffWindowsMail_1
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows Mail'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ManualLaunchAllowed' -Value 0 -Type DWordDésactiver
# Désactiver : WindowsMail/TurnOffWindowsMail_1
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows Mail'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ManualLaunchAllowed' -Value 1 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : WindowsMail/TurnOffWindowsMail_1
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows Mail'
Remove-ItemProperty -Path $k -Name 'ManualLaunchAllowed' -ErrorAction SilentlyContinue