Autoriser uniquement l’authentification de l’appareil pour l’Assistant Connexion au compte Microsoft
Only allow device authentication for the Microsoft Account Sign-In Assistant
Explication
Ce paramètre détermine s’il faut autoriser uniquement l’authentification d’appareil d’entreprise pour le service Assistant Connexion au compte Microsoft (wlidsvc). Par défaut, ce paramètre est désactivé et autorise l’authentification de l’utilisateur et de l’appareil. Lorsque la valeur est définie sur 1, autorisez uniquement l’authentification de l’appareil et bloquez l’authentification de l’utilisateur.
This setting determines whether to only allow enterprise device authentication for the Microsoft Account Sign-in Assistant service (wlidsvc). By default, this setting is disabled and allows both user and device authentication. When the value is set to 1, only allow device authentication, and block user authentication.
Registre
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System- Nom de la valeur
EnterpriseDeviceAuthOnly
| État | Valeur écrite |
|---|---|
| Activé | REG_DWORD = 1 |
| Désactivé | REG_DWORD = 0 |
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 : MSAPolicy/MicrosoftAccount_RestrictToEnterpriseDeviceAuthenticationOnly
$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 'EnterpriseDeviceAuthOnly' -Value 1 -Type DWordDésactiver
# Désactiver : MSAPolicy/MicrosoftAccount_RestrictToEnterpriseDeviceAuthenticationOnly
$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 'EnterpriseDeviceAuthOnly' -Value 0 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : MSAPolicy/MicrosoftAccount_RestrictToEnterpriseDeviceAuthenticationOnly
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
Remove-ItemProperty -Path $k -Name 'EnterpriseDeviceAuthOnly' -ErrorAction SilentlyContinue