Open in the explorer

Block all consumer Microsoft account user authentication

Bloquer toute authentification utilisateur au compte Microsoft client

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft account FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Compte Microsoft
Supported on
At least Windows Server 2016, Windows 10 Version 1703 FR: Windows Server 2016, Windows 10 version 1703 ou versions supérieures
ADMX file
MSAPolicy.admx
Internal name
MSAPolicy/MicrosoftAccount_DisableUserAuth

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.

French text from Windows 11 26H2

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
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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 DWord

Disable

# 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 DWord

Revert to "Not configured"

# Revert to "Not configured": MSAPolicy/MicrosoftAccount_DisableUserAuth
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftAccount'
Remove-ItemProperty -Path $k -Name 'DisableUserAuth' -ErrorAction SilentlyContinue

Availability

Windows Server