Configure the system to clear the TPM if it is not in a ready state.
Configurez le système pour effacer le module de plateforme sécurisée (TPM) s'il n'est pas en mode prêt.
Explanation
This policy setting configures the system to prompt the user to clear the TPM if the TPM is detected to be in any state other than Ready. This policy will take effect only if the system’s TPM is in a state other than Ready, including if the TPM is “Ready, with reduced functionality”. The prompt to clear the TPM will start occurring after the next reboot, upon user login only if the logged in user is part of the Administrators group for the system. The prompt can be dismissed, but will reappear after every reboot and login until the policy is disabled or until the TPM is in a Ready state.
Ce paramètre de stratégie configure le système de sorte à inviter l'utilisateur à effacer le TPM si le TPM est détecté comme étant dans un mode autre que le mode prêt. Cette stratégie prendra effet à condition que le TPM du système soit dans un mode autre que le mode prêt, y compris si le TPM est « Prêt à être utilisé, avec des fonctionnalités réduite ». L'invitation à nettoyer le TPM commencera après le prochain redémarrage, après la connexion de l'utilisateur et seulement si l'utilisateur connecté fait partie du Groupe Administrateurs pour le système. L'invitation peut être ignorée, mais elle réapparaîtra après chaque redémarrage et chaque connexion, jusqu'à ce que la stratégie soit désactivée ou que le TPM soit en mode prêt.
Use cases
Prompts administrators to clear the TPM when it is not in the Ready state, including "Ready, with reduced functionality". It helps bring back machines whose TPM stayed in an intermediate state after deployment or reinstall.
The prompt reappears until the TPM is ready; clearing removes the keys it protects, so use care on machines that are already encrypted.
Microsoft source: TPM Group Policy settings
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\TPM- Value name
ClearTPMIfNotReadyGP
| 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: TPM/ClearTPMIfNotReady_Name
$k = 'HKLM:\Software\Policies\Microsoft\TPM'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ClearTPMIfNotReadyGP' -Value 1 -Type DWordDisable
# Disable: TPM/ClearTPMIfNotReady_Name
$k = 'HKLM:\Software\Policies\Microsoft\TPM'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ClearTPMIfNotReadyGP' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": TPM/ClearTPMIfNotReady_Name
$k = 'HKLM:\Software\Policies\Microsoft\TPM'
Remove-ItemProperty -Path $k -Name 'ClearTPMIfNotReadyGP' -ErrorAction SilentlyContinue