Open in the explorer

Allow Microsoft accounts to be optional

Autoriser les comptes Microsoft à être facultatifs

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › App runtime FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Exécution de l’application
Supported on
At least Windows Server 2012 R2, Windows 8.1 or Windows RT 8.1 FR: Au minimum Windows Server 2012 R2, Windows 8.1 ou Windows RT 8.1
ADMX file
AppXRuntime.admx
Internal name
AppXRuntime/AppxRuntimeMicrosoftAccountsOptional

Explanation

This policy setting lets you control whether Microsoft accounts are optional for packaged Microsoft Store apps that require an account to sign in. This policy only affects packaged Microsoft Store apps that support it.

If you enable this policy setting, packaged Microsoft Store apps that typically require a Microsoft account to sign in will allow users to sign in with an enterprise account instead.

If you disable or do not configure this policy setting, users will need to sign in with a Microsoft account.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de déterminer si les comptes Microsoft sont facultatifs pour les applications empaquetées du Microsoft Store qui nécessitent un compte pour la connexion. Ce paramètre affecte uniquement les applications empaquetées du Microsoft Store qui le prennent en charge.

Si vous activez ce paramètre de stratégie, les applications empaquetées du Microsoft Store qui nécessitent normalement un compte Microsoft pour la connexion autorisent les utilisateurs à se connecter avec un compte d’entreprise.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les utilisateurs doivent se connecter avec un compte Microsoft.

Registry

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
Value name
MSAOptional
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: AppXRuntime/AppxRuntimeMicrosoftAccountsOptional
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'MSAOptional' -Value 1 -Type DWord

Disable

# Disable: AppXRuntime/AppxRuntimeMicrosoftAccountsOptional
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'MSAOptional' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": AppXRuntime/AppxRuntimeMicrosoftAccountsOptional
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
Remove-ItemProperty -Path $k -Name 'MSAOptional' -ErrorAction SilentlyContinue

Availability