Allow Microsoft accounts to be optional
Autoriser les comptes Microsoft à être facultatifs
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.
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
| 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: 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 DWordDisable
# 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 DWordRevert 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