Block all consumer Microsoft account user authentication
Bloquer toute authentification utilisateur au compte Microsoft client
Explanation
This setting controls whether users can provide Microsoft accounts for authentication for applications or services. If this setting is enabled, all applications and services on the device are prevented from using Microsoft accounts for authentication.
This applies both to existing users of a device and new users who may be added. However, any application or service that has already authenticated a user will not be affected by enabling this setting until the authentication cache expires.
It is recommended to enable this setting before any user signs in to a device to prevent cached tokens from being present. If this setting is disabled or not configured, applications and services can use Microsoft accounts for authentication.
By default, this setting is Disabled. This setting does not affect whether users can sign in to devices by using Microsoft accounts, or the ability for users to provide Microsoft accounts via the browser for authentication with web-based applications.
Ce paramètre contrôle si les utilisateurs peuvent fournir des comptes Microsoft pour l'authentification des applications ou services. Si ce paramètre est activé, aucune application et aucun services de l'appareil ne peut utiliser les comptes Microsoft pour l'authentification.
Cela s'applique tant aux utilisateurs existants d'un appareil qu'aux nouveaux utilisateurs qui peuvent être ajoutés. Toutefois, les applications ou services qui ont déjà authentifié un utilisateur ne sont pas affectés par l'activation de ce paramètre tant que le cache d'authentification n'a pas expiré.
Il est recommandé d'activer ce paramètre avant qu'un utilisateur ne se connecte à un appareil pour empêcher la présence de jetons mis en cache. Si vous désactivez ce paramètre ou si vous ne le configurez pas, les applications et les services peuvent utiliser les comptes Microsoft pour s'authentifier.
Par défaut, ce paramètre est désactivé. Ce paramètre n'affecte pas les utilisateurs qui se connectent à des appareils à l'aide de comptes Microsoft, ni la capacité des utilisateurs à fournir des comptes Microsoft via le navigateur pour l'authentification sur les applications web.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\MicrosoftAccount- Value name
DisableUserAuth
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: MSAPolicy/MicrosoftAccount_DisableUserAuth
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftAccount'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableUserAuth' -Value 1 -Type DWordDisable
# Disable: MSAPolicy/MicrosoftAccount_DisableUserAuth
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftAccount'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableUserAuth' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": MSAPolicy/MicrosoftAccount_DisableUserAuth
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftAccount'
Remove-ItemProperty -Path $k -Name 'DisableUserAuth' -ErrorAction SilentlyContinue