Configure the mode of automatically signing in and locking last interactive user after a restart or cold boot
Configurer le mode de connexion automatique et de verrouillage du dernier utilisateur interactif après un redémarrage ou un démarrage à froid
Explanation
This policy setting controls the configuration under which an automatic restart and sign on and lock occurs after a restart or cold boot. If you chose “Disabled” in the “Sign-in and lock last interactive user automatically after a restart” policy, then automatic sign on will not occur and this policy does not need to be configured.
If you enable this policy setting, you can choose one of the following two options:
1. “Enabled if BitLocker is on and not suspended” specifies that automatic sign on and lock will only occur if BitLocker is active and not suspended during the reboot or shutdown. Personal data can be accessed on the device’s hard drive at this time if BitLocker is not on or suspended during an update. BitLocker suspension temporarily removes protection for system components and data but may be needed in certain circumstances to successfully update boot-critical components.
BitLocker is suspended during updates if:
- The device doesn’t have TPM 2.0 and PCR7, or
- The device doesn’t use a TPM-only protector
2. “Always Enabled” specifies that automatic sign on will happen even if BitLocker is off or suspended during reboot or shutdown. When BitLocker is not enabled, personal data is accessible on the hard drive. Automatic restart and sign on should only be run under this condition if you are confident that the configured device is in a secure physical location.
If you disable or don’t configure this setting, automatic sign on will default to the “Enabled if BitLocker is on and not suspended” behavior.
Ce paramètre de stratégie contrôle la configuration sous laquelle un redémarrage, une authentification et un verrouillage automatiques interviennent après un redémarrage ou un démarrage à froid. Si vous avez choisi « Désactivé » dans la stratégie « Se connecter et verrouiller automatiquement le dernier utilisateur interactif après un redémarrage », l'authentification automatique ne se produira pas et cette stratégie ne doit pas être configurée.
Si vous activez ce paramètre de stratégie, vous pouvez choisir l'une des deux options suivantes :
1. « Activé si BitLocker est activé et non suspendu » spécifie que l'authentification et le verrouillage automatiques ne se produisent que si BitLocker est actif et non suspendu pendant le redémarrage ou l'arrêt. À ce stade, les données personnelles sont accessibles sur le disque dur de l'appareil si BitLocker est désactivé ou suspendu pendant une mise à jour. La fonctionnalité de suspension de BitLocker retire temporairement la protection des données pour les composants et les données système, mais elle peut s'avérer nécessaire dans certaines circonstances pour mettre à jour les composants indispensables au démarrage.
BitLocker est suspendu pendant les mises à jour si :
- L'appareil n'a pas TPM 2.0 et PCR7, ou
- L'appareil n'utilise pas de protecteur pour TPM uniquement.
2. « Toujours activé » indique que l'authentification automatique se produit même si BitLocker est désactivé ou suspendu pendant le redémarrage ou l'arrêt. Quand BitLocker n'est pas activé, les données personnelles sont accessibles sur le disque dur. Le redémarrage et l'authentification automatiques ne doivent être exécutés qu'à cette condition si vous avez l'assurance que l'appareil configuré se trouve à un emplacement physique sécurisé.
Si vous désactivez ou ne configurez pas ce paramètre, l'authentification automatique correspond par défaut au comportement « Activé si BitLocker est activé ou non interrompu ».
Registry
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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: WinLogon/ConfigAutomaticRestartSignOn
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Configure the mode of automatically signing in and locking last interactive user after a restart or cold boot
# Possible options:
# Enabled if BitLocker is on and not suspended = 0
# Always Enabled = 1
Set-ItemProperty -Path $k -Name 'AutomaticRestartSignOnConfig' -Value 0 -Type DWordDisable
# Disable: WinLogon/ConfigAutomaticRestartSignOn
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WinLogon/ConfigAutomaticRestartSignOn
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
Remove-ItemProperty -Path $k -Name 'AutomaticRestartSignOnConfig' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Configure the mode of automatically signing in and locking last interactive user after a restart or cold bootConfigurer le mode de connexion automatique et de verrouillage du dernier utilisateur interactif après un redémarrage ou un démarrage à froidConfigAutomaticRestartSignOnDescription | Drop-down listenum | AutomaticRestartSignOnConfig | REG_DWORD |
|