Open in the explorer

Enable Persistent Time Stamp

Activer l’horodatage permanent

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système
Supported on
At least Windows Server 2003 FR: Au minimum Windows Server 2003
ADMX file
Reliability.admx
Internal name
Reliability/EE_EnablePersistentTimeStamp

Explanation

This policy setting allows the system to detect the time of unexpected shutdowns by writing the current time to disk on a schedule controlled by the Timestamp Interval.

If you enable this policy setting, you are able to specify how often the Persistent System Timestamp is refreshed and subsequently written to the disk. You can specify the Timestamp Interval in seconds.

If you disable this policy setting, the Persistent System Timestamp is turned off and the timing of unexpected shutdowns is not recorded.

If you do not configure this policy setting, the Persistent System Timestamp is refreshed according the default, which is every 60 seconds beginning with Windows Server 2003.

Note: This feature might interfere with power configuration settings that turn off hard disks after a period of inactivity. These power settings may be accessed in the Power Options Control Panel.

French text from Windows 11 26H2

Ce paramètre de stratégie permet au système de détecter l’heure des arrêts imprévus en écrivant l’heure actuelle sur le disque à la fréquence définie par l’intervalle d’horodatage.

Si vous activez ce paramètre de stratégie, vous pouvez indiquer la fréquence d’actualisation de l’horodatage système permanent et d’enregistrement sur le disque. Vous pouvez indiquer l’intervalle d’horodatage en secondes.

Si vous désactivez ce paramètre de stratégie, l’horodatage système permanent est désactivé et l’heure des arrêts imprévus n’est pas enregistré.

Si vous ne configurez pas ce paramètre de stratégie, l’horodatage système permanent est actualisé en fonction de la valeur par défaut, à savoir toutes les 60 secondes, à partir de Windows Server 2003.

Remarque : cette fonctionnalité peut interférer avec les paramètres de configuration de l’alimentation qui désactivent les disques durs après une période d’inactivité. Ces paramètres d’alimentation sont accessibles via l’application Options d’alimentation du Panneau de configuration.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Reliability
Value name
TimeStampEnabled
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: Reliability/EE_EnablePersistentTimeStamp
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Reliability'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'TimeStampEnabled' -Value 1 -Type DWord
# Seconds
Set-ItemProperty -Path $k -Name 'TimeStampInterval' -Value 60 -Type DWord  # between 1 and 86400

Disable

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

Revert to "Not configured"

# Revert to "Not configured": Reliability/EE_EnablePersistentTimeStamp
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Reliability'
Remove-ItemProperty -Path $k -Name 'TimeStampEnabled' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'TimeStampInterval' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Seconds:Secondes :EE_EnablePersistentTimeStamp_Desc4Numeric boxdecimalTimeStampIntervalREG_DWORD
Required · Min: 1 · Max: 86400 · Default (UI): 60

Availability